org.walluck.oscar.handlers.icq
Class ICQColor

java.lang.Object
  extended by org.walluck.oscar.handlers.icq.ICQColor

public class ICQColor
extends Object

ICQ color (RGB0 format).

Since:
1.0
Version:
1.0
Author:
David Walluck

Constructor Summary
ICQColor()
          Creates a new ICQ color.
 
Method Summary
 int getBlue()
          Get the value of blue.
 int getGreen()
          Get the value of green.
 int getRed()
          Get the value of red.
 int getZero()
          Get the value of zero.
 int intValue()
          Return RGB triplet as an integer.
 void setBlue(int blue)
          Set the value of blue.
 void setGreen(int green)
          Set the value of green.
 void setRed(int red)
          Set the value of red.
 void setZero(int zero)
          Set the value of zero.
 String toString()
          Return RGB triplet as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ICQColor

public ICQColor()
Creates a new ICQ color.

Method Detail

getRed

public int getRed()
Get the value of red.

Returns:
value of red.

setRed

public void setRed(int red)
Set the value of red.

Parameters:
red - Value to assign to red.

getBlue

public int getBlue()
Get the value of blue.

Returns:
value of blue.

setBlue

public void setBlue(int blue)
Set the value of blue.

Parameters:
blue - Value to assign to blue.

getGreen

public int getGreen()
Get the value of green.

Returns:
value of green.

setGreen

public void setGreen(int green)
Set the value of green.

Parameters:
green - Value to assign to green.

getZero

public int getZero()
Get the value of zero.

Returns:
value of zero.

setZero

public void setZero(int zero)
Set the value of zero.

Parameters:
zero - Value to assign to zero.

intValue

public int intValue()
Return RGB triplet as an integer.

Returns:
the integer

toString

public String toString()
Return RGB triplet as a string.

Overrides:
toString in class Object
Returns:
the string