hotline.iconlib
Class HLRGB

java.lang.Object
  |
  +--hotline.iconlib.HLRGB

public class HLRGB
extends java.lang.Object

class to manage RGB-objects

See Also:
developer site

Constructor Summary
HLRGB()
          initializes the class variables RGB=0x000000
HLRGB(byte r, byte g, byte b)
          initializes the class variables RGB with the given values
HLRGB(int rgb)
          initializes the class variables RGB with the given values
 
Method Summary
 int get()
          return the RGB in big endian format
 int getBlue()
          return the blue value of the object
 int getGreen()
          return the green value of the object
 int getRed()
          return the red value of the object
 void set(int rgb)
          set the class variables RGB with the given values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HLRGB

public HLRGB()
initializes the class variables RGB=0x000000


HLRGB

public HLRGB(byte r,
             byte g,
             byte b)
initializes the class variables RGB with the given values

Parameters:
r - red value
g - green value
b - blue value

HLRGB

public HLRGB(int rgb)
initializes the class variables RGB with the given values

Parameters:
rgb - RGB value stored in big endian order
Method Detail

set

public void set(int rgb)
set the class variables RGB with the given values

Parameters:
rgb - RGB value stored in big endian order

getRed

public int getRed()
return the red value of the object

Returns:
red value

getGreen

public int getGreen()
return the green value of the object

Returns:
green value

getBlue

public int getBlue()
return the blue value of the object

Returns:
blue value

get

public int get()
return the RGB in big endian format

Returns:
RGB value, big endian format