com.tapina.robe.runtime
Class ColourUtils

java.lang.Object
  extended bycom.tapina.robe.runtime.ColourUtils

public class ColourUtils
extends java.lang.Object

This class contains utility methods for working with colours.


Constructor Summary
ColourUtils()
           
 
Method Summary
static java.awt.Color acornToNative(int bbggrr00)
          This methods converts colours from Acorn 0xBBGGRR00 format to native Java Color objects.
static int nativeToAcorn(java.awt.Color c)
          This method returns colours as an integer in the format 0xBBGGRR00.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColourUtils

public ColourUtils()
Method Detail

nativeToAcorn

public static int nativeToAcorn(java.awt.Color c)
This method returns colours as an integer in the format 0xBBGGRR00.

Parameters:
c - Java native colour to convert
Returns:
integer representation of colour

acornToNative

public static java.awt.Color acornToNative(int bbggrr00)
This methods converts colours from Acorn 0xBBGGRR00 format to native Java Color objects.

Parameters:
bbggrr00 - integer representation of colour in 0xBBGGRR00 format.
Returns:
Java native colour


Copyright © 2003-2005 . All Rights Reserved.