com.jinke.gui
Class Color
java.lang.Object
com.jinke.gui.Color
public class Color
- extends java.lang.Object
|
Constructor Summary |
Color()
Default constructor, initialized with color black |
Color(int i)
J2ME style 0xRRGGBB |
Color(short word0,
short word1,
short word2)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLACK
public static final Color BLACK
WHITE
public static final Color WHITE
RED
public static final Color RED
GREEN
public static final Color GREEN
BLUE
public static final Color BLUE
red
public short red
green
public short green
blue
public short blue
Color
public Color()
- Default constructor, initialized with color black
Color
public Color(short word0,
short word1,
short word2)
- Parameters:
word0 - redword1 - greenword2 - blue
Color
public Color(int i)
- J2ME style 0xRRGGBB
- Parameters:
i -
setColor
public void setColor(short word0,
short word1,
short word2)
- Parameters:
word0 - word1 - word2 -
setColor
public void setColor(int i)
- J2ME style 0xRRGGBB
- Parameters:
i -
getColor
public int getColor()
- J2ME style 0xRRGGBB
- Returns:
getRed
public short getRed()
- Returns:
getGreen
public short getGreen()
- Returns:
getBlue
public short getBlue()
- Returns: