public enum SvgColorMode extends java.lang.Enum<SvgColorMode>
Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through "fill-opacity" parameter
Enum Constant and Description |
---|
HSL
HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73"
|
HSLA
HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)"
|
RGB
RGB mode, example: fill="#ff5511" fill-opacity="0.73".
|
RGBA
RGBA mode, example: fill="rgba(255, 85, 17, 0.73)"
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static SvgColorMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SvgColorMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SvgColorMode RGB
RGB mode, example: fill="#ff5511" fill-opacity="0.73". Default mode.
public static final SvgColorMode RGBA
RGBA mode, example: fill="rgba(255, 85, 17, 0.73)"
public static final SvgColorMode HSL
HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73"
public static final SvgColorMode HSLA
HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)"
public static SvgColorMode[] values()
for (SvgColorMode c : SvgColorMode.values()) System.out.println(c);
public static SvgColorMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()