public class ExtendedColor extends Color
Modifier and Type | Field and Description |
---|---|
static ExtendedColor |
BLACK |
static ExtendedColor |
WHITE |
black, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, yellow, YELLOW
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
ExtendedColor(Color c) |
ExtendedColor(ColorSpace cspace,
float[] components,
float alpha) |
ExtendedColor(float r,
float g,
float b) |
ExtendedColor(float r,
float g,
float b,
float a) |
ExtendedColor(int rgb) |
ExtendedColor(int rgba,
boolean hasalpha) |
ExtendedColor(int r,
int g,
int b) |
ExtendedColor(int r,
int g,
int b,
int a) |
Modifier and Type | Method and Description |
---|---|
static ExtendedColor |
decode(String str) |
String |
getAlphaHTMLCode() |
float |
getBlueProportion() |
float |
getGreenProportion() |
String |
getHTMLCode() |
float |
getRedProportion() |
ExtendedColor |
getText() |
boolean |
isDark() |
boolean |
isFilled() |
static void |
main(String[] args) |
String |
toString() |
brighter, createContext, darker, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
public static final ExtendedColor WHITE
public static final ExtendedColor BLACK
public ExtendedColor(int rgb)
public ExtendedColor(Color c)
public ExtendedColor(int rgba, boolean hasalpha)
public ExtendedColor(int r, int g, int b)
public ExtendedColor(float r, float g, float b)
public ExtendedColor(ColorSpace cspace, float[] components, float alpha)
public ExtendedColor(int r, int g, int b, int a)
public ExtendedColor(float r, float g, float b, float a)
public float getGreenProportion()
public float getRedProportion()
public float getBlueProportion()
public String getHTMLCode()
public String getAlphaHTMLCode()
public boolean isDark()
public ExtendedColor getText()
public static ExtendedColor decode(String str)
public boolean isFilled()
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.