|
JFormDesigner 5.0.4 Runtime API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Color
com.jformdesigner.model.SwingColor
public class SwingColor
Used to specify colors from the Swing color palette.
Invokes UIManager.getColor(key)
to get the real color.
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 | |
---|---|
SwingColor(java.lang.String key)
Constructs a color from the Swing color palette. |
|
SwingColor(java.lang.String key,
java.awt.Color color)
For internal use only. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this object. |
java.lang.String |
getKey()
Returns The name of the Swing color. |
int |
hashCode()
Returns the hash code for this object. |
java.lang.String |
toString()
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SwingColor(java.lang.String key)
key
- The name of the Swing color.public SwingColor(java.lang.String key, java.awt.Color color)
Method Detail |
---|
public java.lang.String getKey()
public boolean equals(java.lang.Object obj)
equals
in class java.awt.Color
public int hashCode()
hashCode
in class java.awt.Color
public java.lang.String toString()
toString
in class java.awt.Color
|
JFormDesigner 5.0.4 Runtime API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |