Package com.jsevy.jsvg
Enum SVGDocument.Units
- java.lang.Object
-
- java.lang.Enum<SVGDocument.Units>
-
- com.jsevy.jsvg.SVGDocument.Units
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SVGDocument.Units>
- Enclosing class:
- SVGDocument
public static enum SVGDocument.Units extends java.lang.Enum<SVGDocument.Units>
Enumeration of units that may be used for dimensions in the SVG file; used in setUnits() method call- Author:
- jsevy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTIMETERS
FEET
INCHES
KILOMETERS
METERS
MICROINCHES
MILES
MILLIMETERS
MILS
UNITLESS
YARDS
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SVGDocument.Units
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SVGDocument.Units[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNITLESS
public static final SVGDocument.Units UNITLESS
-
INCHES
public static final SVGDocument.Units INCHES
-
FEET
public static final SVGDocument.Units FEET
-
MILES
public static final SVGDocument.Units MILES
-
MILLIMETERS
public static final SVGDocument.Units MILLIMETERS
-
CENTIMETERS
public static final SVGDocument.Units CENTIMETERS
-
METERS
public static final SVGDocument.Units METERS
-
KILOMETERS
public static final SVGDocument.Units KILOMETERS
-
MICROINCHES
public static final SVGDocument.Units MICROINCHES
-
MILS
public static final SVGDocument.Units MILS
-
YARDS
public static final SVGDocument.Units YARDS
-
-
Method Detail
-
values
public static SVGDocument.Units[] 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 (SVGDocument.Units c : SVGDocument.Units.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SVGDocument.Units 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
-
-