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
FieldsFields inherited from class com.github.weisj.darklaf.util.ColorWrapper
DEFAULT_COLORFields 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, YELLOWFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetColor()protected Objectprotected Objectprotected Colorprotected booleanprotected 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 Details
-
currentKey
-
-
Constructor Details
-
DynamicColor
public DynamicColor() -
DynamicColor
-
-
Method Details
-
setDynamicKey
-
isColorSet
protected boolean isColorSet() -
getCurrentDynamicKey
-
getCurrentKey
-
setCurrentKey
-
ensureCorrectColor
protected void ensureCorrectColor() -
getColor
- Overrides:
getColorin classcom.github.weisj.darklaf.util.ColorWrapper
-
getUpdatedColor
-