public enum RtfUnit extends Enum<RtfUnit>
| Enum Constant and Description |
|---|
CM
Measurement in cm.
|
INCH
Measurement in inch.
|
POINT
Measurement in point.
|
TWIPS
Measurement in twips.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
toTwips(double v)
Converts to twips.
|
static RtfUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RtfUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RtfUnit TWIPS
public static final RtfUnit POINT
public static final RtfUnit INCH
public static final RtfUnit CM
public static RtfUnit[] values()
for (RtfUnit c : RtfUnit.values()) System.out.println(c);
public static RtfUnit 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 abstract int toTwips(double v)
v - Value to convert to twips.Copyright © 2010–2015 Tutego. All rights reserved.