public static enum Length.Unit extends Enum<Length.Unit>
Enum Constant and Description |
---|
CENTIMETER |
INCH |
MILLIMETER |
PICA |
PIXEL |
POINT |
Modifier and Type | Method and Description |
---|---|
String |
abbr() |
double |
unitInMillimiter() |
static Length.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Length.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Length.Unit POINT
public static final Length.Unit PIXEL
public static final Length.Unit MILLIMETER
public static final Length.Unit PICA
public static final Length.Unit CENTIMETER
public static final Length.Unit INCH
public static Length.Unit[] values()
for (Length.Unit c : Length.Unit.values()) System.out.println(c);
public static Length.Unit 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 unitInMillimiter()
public String abbr()
Copyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.