public class SwingColor extends Color implements SwingResource
UIManager.getColor(key)
to get the real 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
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
SwingColor(String key)
Constructs a color from the Swing color palette.
|
SwingColor(String key,
Color color)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether another object is equal to this object.
|
String |
getKey()
Returns The name of the Swing color.
|
int |
hashCode()
Returns the hash code for this object.
|
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, RGBtoHSB
public SwingColor(String key)
key
- The name of the Swing color.Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.