com.jinke.gui
Class Color

java.lang.Object
  extended by com.jinke.gui.Color

public class Color
extends java.lang.Object


Field Summary
static Color BLACK
           
 short blue
           
static Color BLUE
           
 short green
           
static Color GREEN
           
 short red
           
static Color RED
           
static Color WHITE
           
 
Constructor Summary
Color()
          Default constructor, initialized with color black
Color(int i)
          J2ME style 0xRRGGBB
Color(short word0, short word1, short word2)
           
 
Method Summary
 short getBlue()
           
 int getColor()
          J2ME style 0xRRGGBB
 short getGreen()
           
 short getRed()
           
 void setColor(int i)
          J2ME style 0xRRGGBB
 void setColor(short word0, short word1, short word2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Color

public Color()
Default constructor, initialized with color black


Color

public Color(short word0,
             short word1,
             short word2)
Parameters:
word0 - red
word1 - green
word2 - blue

Color

public Color(int i)
J2ME style 0xRRGGBB

Parameters:
i -
Method Detail

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: