public static enum Sizeable.Unit extends Enum<Sizeable.Unit>
Enum Constant and Description |
---|
CM
Unit code representing centimeters.
|
EM
Unit code representing the font-size of the relevant font.
|
EX
Unit code representing the x-height of the relevant font.
|
INCH
Unit code representing inches.
|
MM
Unit code representing millimeters.
|
PERCENTAGE
Unit code representing in percentage of the containing element
defined by terminal.
|
PICAS
Unit code representing picas (12 points).
|
PIXELS
Unit code representing pixels.
|
POINTS
Unit code representing points (1/72nd of an inch).
|
REM
Unit code representing the font-size of the root font.
|
Modifier and Type | Method and Description |
---|---|
String |
getSymbol() |
static Sizeable.Unit |
getUnitFromSymbol(String symbol) |
String |
toString() |
static Sizeable.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sizeable.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sizeable.Unit PIXELS
public static final Sizeable.Unit POINTS
public static final Sizeable.Unit PICAS
public static final Sizeable.Unit EM
public static final Sizeable.Unit REM
public static final Sizeable.Unit EX
public static final Sizeable.Unit MM
public static final Sizeable.Unit CM
public static final Sizeable.Unit INCH
public static final Sizeable.Unit PERCENTAGE
public static Sizeable.Unit[] values()
for (Sizeable.Unit c : Sizeable.Unit.values()) System.out.println(c);
public static Sizeable.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 String getSymbol()
public String toString()
toString
in class Enum<Sizeable.Unit>
public static Sizeable.Unit getUnitFromSymbol(String symbol)
Copyright © 2019 Vaadin Ltd. All rights reserved.