Package cn.mapway.ui.client.widget.color
Class Color
- java.lang.Object
-
- cn.mapway.ui.client.widget.color.Color
-
public class Color extends Object
The Class Color.
-
-
Field Summary
Fields Modifier and Type Field Description static ColorBLACKThe Constant BLACK.static ColorBLUEThe Constant BLUE.static ColorCYANThe Constant CYAN.static ColorDARK_GRAYThe Constant DARK_GRAY.static ColorGRAYThe Constant GRAY.static ColorGREENThe Constant GREEN.static ColorLIGHT_GRAYThe Constant LIGHT_GRAY.static ColorMAGENTAThe Constant MAGENTA.static ColorORANGEThe Constant ORANGE.static ColorPINKThe Constant PINK.static ColorREDThe Constant RED.static ColorWHITEThe Constant WHITE.static ColorYELLOWThe Constant YELLOW.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlue()Gets the blue.intgetGreen()Gets the green.floatgetHue()Gets the hue.floatgetLightness()Gets the lightness.intgetRed()Gets the red.floatgetSaturation()Gets the saturation.StringtoString()
-
-
-
Field Detail
-
WHITE
public static final Color WHITE
The Constant WHITE.
-
LIGHT_GRAY
public static final Color LIGHT_GRAY
The Constant LIGHT_GRAY.
-
GRAY
public static final Color GRAY
The Constant GRAY.
-
DARK_GRAY
public static final Color DARK_GRAY
The Constant DARK_GRAY.
-
BLACK
public static final Color BLACK
The Constant BLACK.
-
RED
public static final Color RED
The Constant RED.
-
PINK
public static final Color PINK
The Constant PINK.
-
ORANGE
public static final Color ORANGE
The Constant ORANGE.
-
YELLOW
public static final Color YELLOW
The Constant YELLOW.
-
GREEN
public static final Color GREEN
The Constant GREEN.
-
MAGENTA
public static final Color MAGENTA
The Constant MAGENTA.
-
CYAN
public static final Color CYAN
The Constant CYAN.
-
BLUE
public static final Color BLUE
The Constant BLUE.
-
-
Constructor Detail
-
Color
public Color(String hex)
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 Detail
-
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
-
-