Package org.loboevolution.laf
Class ColorFactory
java.lang.Object
org.loboevolution.laf.ColorFactory
A factory for creating Color objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorgetAdjustedColor(Color c, double factor) getAdjustedColor.Gets the color.getColor(LAFColorType colorSpec) Gets the color.getColorString(HTMLElement element, String colorSpec, String defaultValue) Gets the color string.static ColorFactoryGets the instance.booleanChecks if is color.booleanisRgbOrHsl(String colorSpec) isRgbOrHsl.
-
Method Details
-
getInstance
Gets the instance.- Returns:
- the instance
-
getColor
Gets the color.- Parameters:
colorSpec- the color spec- Returns:
- the color
-
getColor
Gets the color.- Parameters:
colorSpec- the color spec- Returns:
- the color
-
getColorString
Gets the color string.- Parameters:
element- aHTMLElementobject.colorSpec- aStringobject.defaultValue- aStringobject.- Returns:
- the color
-
isColor
Checks if is color.- Parameters:
colorSpec- the color spec- Returns:
- true, if is color
-
isRgbOrHsl
isRgbOrHsl.
- Parameters:
colorSpec- aStringobject.- Returns:
- a boolean.
-
getAdjustedColor
getAdjustedColor.
-