Package com.formdev.flatlaf.util
Class ColorFunctions.HSLIncreaseDecrease
- java.lang.Object
-
- com.formdev.flatlaf.util.ColorFunctions.HSLIncreaseDecrease
-
- All Implemented Interfaces:
ColorFunctions.ColorFunction
- Enclosing class:
- ColorFunctions
public static class ColorFunctions.HSLIncreaseDecrease extends java.lang.Object implements ColorFunctions.ColorFunction
Increase or decrease hue, saturation, luminance or alpha of a color in the HSL color space by an absolute or relative amount.
-
-
Field Summary
Fields Modifier and Type Field Description float
amount
boolean
autoInverse
int
hslIndex
boolean
increase
boolean
relative
-
Constructor Summary
Constructors Constructor Description HSLIncreaseDecrease(int hslIndex, boolean increase, float amount, boolean relative, boolean autoInverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(float[] hsla)
protected boolean
shouldInverse(float[] hsla)
java.lang.String
toString()
-
-
-
Method Detail
-
apply
public void apply(float[] hsla)
- Specified by:
apply
in interfaceColorFunctions.ColorFunction
-
shouldInverse
protected boolean shouldInverse(float[] hsla)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-