Package com.github.weisj.jsvg.attributes
Enum ColorInterpolation
- java.lang.Object
-
- java.lang.Enum<ColorInterpolation>
-
- com.github.weisj.jsvg.attributes.ColorInterpolation
-
- All Implemented Interfaces:
HasMatchName
,java.io.Serializable
,java.lang.Comparable<ColorInterpolation>
public enum ColorInterpolation extends java.lang.Enum<ColorInterpolation> implements HasMatchName
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.lang.String
matchName
-
Constructor Summary
Constructors Modifier Constructor Description private
ColorInterpolation(@NotNull java.lang.String matchName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
matchName()
static ColorInterpolation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ColorInterpolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
S_RGB
public static final ColorInterpolation S_RGB
-
LinearRGB
public static final ColorInterpolation LinearRGB
-
Auto
public static final ColorInterpolation Auto
-
Inherit
public static final ColorInterpolation Inherit
-
-
Method Detail
-
values
public static ColorInterpolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColorInterpolation c : ColorInterpolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorInterpolation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
matchName
@NotNull public @NotNull java.lang.String matchName()
- Specified by:
matchName
in interfaceHasMatchName
-
-