Package com.github.weisj.darklaf.color
Class DarkColorModelHSL
java.lang.Object
com.github.weisj.darklaf.color.DarkColorModel
com.github.weisj.darklaf.color.DarkColorModelHSL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetColorFromHSLValues(double h, double s, double l)getColorFromValues(int[] values)static DarkColorModelHSLString[]String[]intgetMaximum(int index)intgetMinimum(int index)int[]getValuesFromColor(Color color)protected static doublemax(double red, double green, double blue)protected static doublemin(double red, double green, double blue)static double[]RGBtoHSLValues(int r, int g, int b)toString()Methods inherited from class com.github.weisj.darklaf.color.DarkColorModel
getCount, getDefault, getFullLabelDescriptorsAfter, getFullLabelDescriptorsBefore, getText
-
Constructor Details
-
DarkColorModelHSL
public DarkColorModelHSL()
-
-
Method Details
-
getInstance
-
getMinimum
public int getMinimum(int index)- Specified by:
getMinimumin classDarkColorModel
-
getMaximum
public int getMaximum(int index)- Specified by:
getMaximumin classDarkColorModel
-
toString
- Specified by:
toStringin classDarkColorModel
-
getLabelDescriptorsBefore
- Specified by:
getLabelDescriptorsBeforein classDarkColorModel
-
getLabelDescriptorsAfter
- Overrides:
getLabelDescriptorsAfterin classDarkColorModel
-
getValuesFromColor
- Specified by:
getValuesFromColorin classDarkColorModel
-
getColorFromHSLValues
-
RGBtoHSLValues
public static double[] RGBtoHSLValues(int r, int g, int b) -
max
protected static double max(double red, double green, double blue) -
min
protected static double min(double red, double green, double blue) -
getColorFromValues
- Specified by:
getColorFromValuesin classDarkColorModel
-