public enum SVGUnits extends Enum<SVGUnits>
| Enum Constant and Description |
|---|
CMCentimeter length unit. |
EMThe font size. |
EXHeight of character 'x'. |
INInch length unit. |
MMMillimeter length unit. |
PCPicas (1/6 inch). |
PTPoints (1/72 inch). |
PXPixels in user space coordinates. |
| Modifier and Type | Method and Description |
|---|---|
String | toString()Returns the SVG unit identifier as a string. |
static SVGUnits | valueOf(String name)Returns the enum constant of this type with the specified name. |
static SVGUnits[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final SVGUnits CM
public static final SVGUnits EM
public static final SVGUnits EX
public static final SVGUnits IN
public static final SVGUnits MM
public static final SVGUnits PC
public static final SVGUnits PT
public static final SVGUnits PX
public String toString()
public static SVGUnits valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SVGUnits[] values()
for (SVGUnits c : SVGUnits.values()) System.out.println(c);