org.palo.api.ext.ui
Class ColorDescriptor

java.lang.Object
  extended by org.palo.api.ext.ui.ColorDescriptor

public class ColorDescriptor
extends java.lang.Object

A ColorDescriptor is a platform-independent color description

Version:
$Id: ColorDescriptor.html,v 1.10 2009/07/09 11:01:47 ArndHouben Exp $

Constructor Summary
ColorDescriptor(int red, int green, int blue)
          Creates a new ColorDescriptor instance with the given color parts values
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getBlue()
          Returns the blue fraction of specified color
 int getGreen()
          Returns the green fraction of specified color
 int getRed()
          Returns the red fraction of specified color
 int hashCode()
           
 void setBlue(int blue)
          Sets the blue fraction of specified color
 void setGreen(int green)
          Sets the green color fraction
 void setRed(int red)
          Sets the red color fraction
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorDescriptor

public ColorDescriptor(int red,
                       int green,
                       int blue)
Creates a new ColorDescriptor instance with the given color parts values

Parameters:
red - the red fraction
green - the green fraction
blue - the blue fraction
Method Detail

getBlue

public final int getBlue()
Returns the blue fraction of specified color

Returns:
blue fraction

setBlue

public final void setBlue(int blue)
Sets the blue fraction of specified color

Parameters:
blue - blue color fraction

getGreen

public final int getGreen()
Returns the green fraction of specified color

Returns:
green fraction

setGreen

public final void setGreen(int green)
Sets the green color fraction

Parameters:
green - green color fraction

getRed

public final int getRed()
Returns the red fraction of specified color

Returns:
red fraction

setRed

public final void setRed(int red)
Sets the red color fraction

Parameters:
red - red color fraction

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object