Package com.formdev.flatlaf.util
Class DerivedColor
- java.lang.Object
-
- java.awt.Color
-
- javax.swing.plaf.ColorUIResource
-
- com.formdev.flatlaf.util.DerivedColor
-
- All Implemented Interfaces:
Paint
,Transparency
,Serializable
,UIResource
public class DerivedColor extends ColorUIResource
A (red) color that acts as a placeholder in UI defaults. The actual color is derived from another color, which is modified by the given color functions.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description DerivedColor(Color defaultColor, ColorFunctions.ColorFunction... functions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
derive(Color baseColor)
ColorFunctions.ColorFunction[]
getFunctions()
String
toString()
-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB
-
-
-
-
Constructor Detail
-
DerivedColor
public DerivedColor(Color defaultColor, ColorFunctions.ColorFunction... functions)
-
-