public class SwingColor extends java.awt.Color implements SwingResource
UIManager.getColor(key) to get the real color.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
brighter, createContext, darker, decode, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, HSBtoRGB, RGBtoHSBpublic SwingColor(java.lang.String key)
key - The name of the Swing color.public SwingColor(java.lang.String key,
java.awt.Color color)
public java.lang.String getKey()
public boolean equals(java.lang.Object obj)
equals in class java.awt.Colorpublic int hashCode()
hashCode in class java.awt.Colorpublic java.lang.String toString()
toString in class java.awt.ColorCopyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.