Package com.github.weisj.darklaf.color
Class DynamicColor
- java.lang.Object
-
- java.awt.Color
-
- com.github.weisj.darklaf.util.ColorWrapper
-
- com.github.weisj.darklaf.color.DynamicColor
-
- All Implemented Interfaces:
Paint,Transparency,Serializable
- Direct Known Subclasses:
DynamicColorUIResource
public class DynamicColor extends com.github.weisj.darklaf.util.ColorWrapper- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectcurrentKey-
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 DynamicColor()DynamicColor(String key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureCorrectColor()ColorgetColor()protected ObjectgetCurrentDynamicKey()protected ObjectgetCurrentKey()protected ColorgetUpdatedColor()protected booleanisColorSet()protected voidsetCurrentKey(Object currentKey)static voidsetDynamicKey(Object obj)-
Methods inherited from class com.github.weisj.darklaf.util.ColorWrapper
brighter, createContext, darker, getAlpha, getBlue, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, setColor
-
-
-
-
Field Detail
-
currentKey
protected Object currentKey
-
-
Constructor Detail
-
DynamicColor
public DynamicColor()
-
DynamicColor
public DynamicColor(String key)
-
-
Method Detail
-
setDynamicKey
public static void setDynamicKey(Object obj)
-
isColorSet
protected boolean isColorSet()
-
getCurrentDynamicKey
protected Object getCurrentDynamicKey()
-
getCurrentKey
protected Object getCurrentKey()
-
setCurrentKey
protected void setCurrentKey(Object currentKey)
-
ensureCorrectColor
protected void ensureCorrectColor()
-
getColor
public Color getColor()
- Overrides:
getColorin classcom.github.weisj.darklaf.util.ColorWrapper
-
getUpdatedColor
protected Color getUpdatedColor()
-
-