Package com.persequor.extension.frontend
Class Color
java.lang.Object
com.persequor.extension.frontend.Color
- Direct Known Subclasses:
ThemeColor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
aqua()
static Color
black()
static Color
blue()
static ThemeColor
error()
static Color
fromHSL
(int hue, int saturation, int lightness) static Color
fromHSLA
(int hue, int saturation, int lightness, float alpha) static Color
fromString
(String string) static Color
fuchsia()
getA()
getB()
getG()
getName()
getR()
getType()
static Color
gray()
static Color
green()
static ThemeColor
info()
static ThemeColor
inherit()
static Color
lime()
static Color
maroon()
static Color
navy()
static Color
olive()
static Color
orange()
static ThemeColor
primary()
static Color
purple()
static Color
red()
static ThemeColor
static Color
silver()
static ThemeColor
standard()
static ThemeColor
success()
static Color
teal()
toString()
static ThemeColor
warning()
static Color
white()
static Color
yellow()
-
Field Details
-
r
protected final int r -
g
protected final int g -
b
protected final int b -
a
protected final float a -
name
-
themeType
-
colorMode
-
-
Constructor Details
-
Color
public Color(int r, int g, int b) -
Color
public Color(int r, int g, int b, float a)
-
-
Method Details
-
-
secondary
-
standard
-
info
-
success
-
warning
-
error
-
inherit
-
fromString
- Parameters:
string
- Value should be a CSS color name or a hex string starting with '#' of length 7 or 9
-
fromHSL
-
fromHSLA
- Parameters:
hue
- The hue, integer value from 0 to 360saturation
- The saturation, value from 0 to 100 (percentage)lightness
- The lightness, value from 0 to 100 (percentage)alpha
- The aplha channel a.k.a. transparentness float value from 0 to 1- Returns:
- the color object
-
getR
-
getG
-
getB
-
getA
-
getName
-
getColorMode
-
getType
-
maroon
-
red
-
orange
-
yellow
-
olive
-
green
-
purple
-
fuchsia
-
lime
-
teal
-
aqua
-
blue
-
black
-
gray
-
silver
-
white
-
getBasicColors
-
toString
-