Package org.ujmp.core.util
Class ColorUtil
java.lang.Object
org.ujmp.core.util.ColorUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Color
static final Color
contrastBW
(Color c) static final Color
fromBoolean
(boolean v) static final Color
fromBoolean
(boolean v, int alpha) static final Color
fromDouble
(double v) static final Color
fromDouble
(double v, int alpha) static Color
fromObject
(Object v) static Color
fromObject
(Object v, int alpha) static final Color
fromRGB
(int v) static Color
fromString
(String s) static Color
fromString
(String s, int alpha) private static int
hash
(int h) static String
toHtmlColor
(Color color)
-
Field Details
-
TRACECOLORS
-
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
-
Method Details
-
contrastBW
-
fromRGB
-
add
-
fromBoolean
-
fromBoolean
-
fromDouble
-
fromDouble
-
fromString
-
fromString
-
fromObject
-
fromObject
-
hash
private static int hash(int h) -
toHtmlColor
-