public static enum WidthRepresentation.Unit extends java.lang.Enum<WidthRepresentation.Unit>
Enum Constant and Description |
---|
CENTIMETER
Centimeters are converted to inches and then multiplied with the dots per inch.
|
EM
The EM is relative to the font size.
|
EX
The EX is relative the the height of the "x" character.
|
INCH
Value in inches are multiplied with the dots per inch value.
|
MILLIMETER
Value in millimeter is converted to inches and then to pixels.
|
PICA
Pica is a unit of measure equal to 12 points or one sixth of an inch.
|
PIXEL
Directly in pixels.
|
POINT
A point is approximately 1/72 inch.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static WidthRepresentation.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WidthRepresentation.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WidthRepresentation.Unit CENTIMETER
cm
.public static final WidthRepresentation.Unit EM
em
.public static final WidthRepresentation.Unit EX
ex
.public static final WidthRepresentation.Unit INCH
in
.public static final WidthRepresentation.Unit MILLIMETER
mm
.public static final WidthRepresentation.Unit PICA
pc
.public static final WidthRepresentation.Unit PIXEL
px
.public static final WidthRepresentation.Unit POINT
pt
.public static WidthRepresentation.Unit[] values()
for (WidthRepresentation.Unit c : WidthRepresentation.Unit.values()) System.out.println(c);
public static WidthRepresentation.Unit 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 java.lang.String toString()
toString
in class java.lang.Enum<WidthRepresentation.Unit>
Enum.toString()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.