public static enum StyleTypeDefinitions.SupportedLinearMeasure extends Enum<StyleTypeDefinitions.SupportedLinearMeasure>
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final StyleTypeDefinitions.SupportedLinearMeasure PT
public static final StyleTypeDefinitions.SupportedLinearMeasure IN
public static final StyleTypeDefinitions.SupportedLinearMeasure CM
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 nameNullPointerException - if the argument is nullpublic double convert(double measure,
StyleTypeDefinitions.SupportedLinearMeasure measureUnit)
measure - the measure value in the given measureUnitmeasureUnit - the unit of the measure argumentpublic double toINs(double measure)
measure - the measureconvert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)public double toPTs(double measure)
measure - the measureconvert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)public double toCMs(double measure)
measure - the measureconvert(double, org.odftoolkit.simple.style.StyleTypeDefinitions.SupportedLinearMeasure)public static StyleTypeDefinitions.SupportedLinearMeasure enumValueOf(String aValue)
public String toString()
toString in class Enum<StyleTypeDefinitions.SupportedLinearMeasure>Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.