Class SwingColor
java.lang.Object
java.awt.Color
com.jformdesigner.model.SwingColor
- All Implemented Interfaces:
SwingResource, Paint, Transparency, Serializable
Used to specify colors from the Swing color palette.
Invokes
UIManager.getColor(key) to get the real color.- See Also:
-
Field Summary
Fields inherited from class Color
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, YELLOWFields inherited from interface Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionSwingColor(String key) Constructs a color from the Swing color palette.SwingColor(String key, Color color) For internal use only. -
Method Summary
Methods inherited from class Color
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB
-
Constructor Details
-
SwingColor
Constructs a color from the Swing color palette.- Parameters:
key- The name of the Swing color.
-
SwingColor
-
-
Method Details
-
getKey
Returns The name of the Swing color. -
equals
-
hashCode
-
toString
-