|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<StyleTypeDefinitions.SupportedLinearMeasure>
org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure
public static enum StyleTypeDefinitions.SupportedLinearMeasure
The supported line measurement till now
Enum Constant Summary | |
---|---|
CM
|
|
IN
|
|
PT
|
Method Summary | |
---|---|
double |
convert(double measure,
StyleTypeDefinitions.SupportedLinearMeasure measureUnit)
Convert the given linear measure in the given unit to this unit. |
static StyleTypeDefinitions.SupportedLinearMeasure |
enumValueOf(String aValue)
|
double |
toCMs(double measure)
Convert other measure to centimeter(CM) measure. |
double |
toINs(double measure)
Convert other measure to inch(IN) measure. |
double |
toPTs(double measure)
Convert other measure to point(PT) measure. |
String |
toString()
|
static StyleTypeDefinitions.SupportedLinearMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StyleTypeDefinitions.SupportedLinearMeasure[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final StyleTypeDefinitions.SupportedLinearMeasure PT
public static final StyleTypeDefinitions.SupportedLinearMeasure IN
public static final StyleTypeDefinitions.SupportedLinearMeasure CM
Method Detail |
---|
public static StyleTypeDefinitions.SupportedLinearMeasure[] values()
for (StyleTypeDefinitions.SupportedLinearMeasure c : StyleTypeDefinitions.SupportedLinearMeasure.values()) System.out.println(c);
public static StyleTypeDefinitions.SupportedLinearMeasure valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic double convert(double measure, StyleTypeDefinitions.SupportedLinearMeasure measureUnit)
measure
- the measure value in the given measureUnit
measureUnit
- the unit of the measure
argument
public double toINs(double measure)
measure
- the measure
convert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)
public double toPTs(double measure)
measure
- the measure
convert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)
public double toCMs(double measure)
measure
- the measure
convert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)
public static StyleTypeDefinitions.SupportedLinearMeasure enumValueOf(String aValue)
public String toString()
toString
in class Enum<StyleTypeDefinitions.SupportedLinearMeasure>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |