Package cn.mapway.ui.client.widget.color
Class Color
java.lang.Object
cn.mapway.ui.client.widget.color.Color
The Class Color.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorThe Constant BLACK.static final ColorThe Constant BLUE.static final ColorThe Constant CYAN.static final ColorThe Constant DARK_GRAY.static final ColorThe Constant GRAY.static final ColorThe Constant GREEN.static final ColorThe Constant LIGHT_GRAY.static final ColorThe Constant MAGENTA.static final ColorThe Constant ORANGE.static final ColorThe Constant PINK.static final ColorThe Constant RED.static final ColorThe Constant WHITE.static final ColorThe Constant YELLOW. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WHITE
The Constant WHITE. -
LIGHT_GRAY
The Constant LIGHT_GRAY. -
GRAY
The Constant GRAY. -
DARK_GRAY
The Constant DARK_GRAY. -
BLACK
The Constant BLACK. -
RED
The Constant RED. -
PINK
The Constant PINK. -
ORANGE
The Constant ORANGE. -
YELLOW
The Constant YELLOW. -
GREEN
The Constant GREEN. -
MAGENTA
The Constant MAGENTA. -
CYAN
The Constant CYAN. -
BLUE
The Constant BLUE.
-
-
Constructor Details
-
Color
Instantiates a new color.- Parameters:
hex- the hex
-
Color
public Color(int r, int g, int b) Instantiates a new color.- Parameters:
r- the rg- the gb- the b
-
Color
public Color(float h, float s, float l) Instantiates a new color.- Parameters:
h- the hs- the sl- the l
-
-
Method Details
-
getRed
public int getRed()Gets the red.- Returns:
- the red
-
getGreen
public int getGreen()Gets the green.- Returns:
- the green
-
getBlue
public int getBlue()Gets the blue.- Returns:
- the blue
-
getHue
public float getHue()Gets the hue.- Returns:
- the hue
-
getSaturation
public float getSaturation()Gets the saturation.- Returns:
- the saturation
-
getLightness
public float getLightness()Gets the lightness.- Returns:
- the lightness
-
toString
-