Package org.javlo.image
Class ExtendedColor
- java.lang.Object
-
- java.awt.Color
-
- org.javlo.image.ExtendedColor
-
- All Implemented Interfaces:
Paint,Transparency,Serializable
- Direct Known Subclasses:
EmptyColor
public class ExtendedColor extends Color
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ExtendedColorBLACKstatic ExtendedColorWHITE-
Fields inherited from class java.awt.Color
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
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description 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)ExtendedColor(Color c)ExtendedColor(ColorSpace cspace, float[] components, float alpha)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtendedColordecode(String str)StringgetAlphaHTMLCode()floatgetBlueProportion()floatgetGreenProportion()StringgetHTMLCode()floatgetRedProportion()ExtendedColorgetText()booleanisDark()booleanisDarker()booleanisFilled()booleanisLighter()static voidmain(String[] args)StringtoString()-
Methods inherited from class java.awt.Color
brighter, createContext, darker, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
-
-
-
-
Field Detail
-
WHITE
public static final ExtendedColor WHITE
-
BLACK
public static final ExtendedColor BLACK
-
-
Constructor Detail
-
ExtendedColor
public ExtendedColor(int rgb)
-
ExtendedColor
public ExtendedColor(Color c)
-
ExtendedColor
public ExtendedColor(int rgba, boolean hasalpha)
-
ExtendedColor
public ExtendedColor(int r, int g, int b)
-
ExtendedColor
public ExtendedColor(float r, float g, float b)
-
ExtendedColor
public ExtendedColor(ColorSpace cspace, float[] components, float alpha)
-
ExtendedColor
public ExtendedColor(int r, int g, int b, int a)
-
ExtendedColor
public ExtendedColor(float r, float g, float b, float a)
-
-
Method Detail
-
getGreenProportion
public float getGreenProportion()
-
getRedProportion
public float getRedProportion()
-
getBlueProportion
public float getBlueProportion()
-
getHTMLCode
public String getHTMLCode()
-
getAlphaHTMLCode
public String getAlphaHTMLCode()
-
isDark
public boolean isDark()
-
isDarker
public boolean isDarker()
-
isLighter
public boolean isLighter()
-
getText
public ExtendedColor getText()
-
decode
public static ExtendedColor decode(String str)
-
isFilled
public boolean isFilled()
-
main
public static void main(String[] args)
-
-