Class Color
This concrete class represents colors.
public class Color
Red, green, and blue are in RGB range (0–255).
Hierarchical Diagram
Direct Known Subclasses
None
Constructor
public Color (int red, int green, int blue)
Throws: RSDException
Methods
• getRed
Returns the red color value from 0–255.
public int getRed()
• getBlue
Returns the blue color value from 0–255.
public int getBlue()
• getGreen
Returns the green color value from 0–255.
public int getGreen()
• setRed
Sets the red value, from 0–255, for a color.
public void setRed(int red)
Throws: RSDException
• setBlue
Sets the blue value, from 0–255, for a color.
public void setBlue(int blue)
Throws: RSDException
• setGreen
Sets the green value, from 0–255, for a color.
public void setGreen(int green)
Throws: RSDException
• toArray
Returns an array of 3 representing the RGB color array.
public Integer[] toArray()
Throws: RSDException