Package com.jformdesigner.model
Class SwingColor
- java.lang.Object
-
- java.awt.Color
-
- com.jformdesigner.model.SwingColor
-
- All Implemented Interfaces:
SwingResource,Paint,Transparency,Serializable
public class SwingColor extends Color implements SwingResource
Used to specify colors from the Swing color palette. InvokesUIManager.getColor(key)to get the real color.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.awt.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, YELLOW
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description SwingColor(String key)Constructs a color from the Swing color palette.SwingColor(String key, Color color)For internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Determines whether another object is equal to this object.StringgetKey()Returns The name of the Swing color.inthashCode()Returns the hash code for this object.StringtoString()Returns a string representation of the object.-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSB
-
-