Module com.github.weisj.jsvg
Package com.github.weisj.jsvg.paint.impl
Enum DefaultPaintParser.ColorLookup.Cache
- java.lang.Object
-
- java.lang.Enum<DefaultPaintParser.ColorLookup.Cache>
-
- com.github.weisj.jsvg.paint.impl.DefaultPaintParser.ColorLookup.Cache
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultPaintParser.ColorLookup.Cache>
- Enclosing class:
- DefaultPaintParser.ColorLookup
private static enum DefaultPaintParser.ColorLookup.Cache extends java.lang.Enum<DefaultPaintParser.ColorLookup.Cache>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.awt.Color>
colorMap
-
Constructor Summary
Constructors Modifier Constructor Description private
Cache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultPaintParser.ColorLookup.Cache
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultPaintParser.ColorLookup.Cache[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DefaultPaintParser.ColorLookup.Cache INSTANCE
-
-
Method Detail
-
values
public static DefaultPaintParser.ColorLookup.Cache[] 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 (DefaultPaintParser.ColorLookup.Cache c : DefaultPaintParser.ColorLookup.Cache.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultPaintParser.ColorLookup.Cache 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
-
-