public class CSSColorValue extends Color implements CSSValue
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
CSSColorValue(Color color) |
CSSColorValue(float r,
float g,
float b) |
CSSColorValue(float r,
float g,
float b,
float a) |
CSSColorValue(int rgba,
boolean hasalpha) |
CSSColorValue(int r,
int g,
int b) |
CSSColorValue(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines if this instance of the object is equals to another Object
|
String |
getCSSText() |
CSSType |
getType() |
String |
toString()
Returns a string representation of this
Color . |
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
public CSSColorValue(int r, int g, int b, int a)
public CSSColorValue(int rgba, boolean hasalpha)
public CSSColorValue(float r, float g, float b, float a)
public CSSColorValue(float r, float g, float b)
public CSSColorValue(int r, int g, int b)
public CSSColorValue(Color color)
public String getCSSText()
getCSSText
in interface CSSValue
public boolean equals(Object obj)
public String toString()
Color
. This method is intended to be used only for debugging
purposes. The content and format of the returned string might vary between implementations. The returned string
might be empty but cannot be null
.Copyright © 2017 Hitachi Vantara. All rights reserved.