Package com.vaadin.classic.v8.server
Enum Class Sizeable.Unit
- All Implemented Interfaces:
Serializable,Comparable<Sizeable.Unit>,Constable
- Enclosing interface:
- Sizeable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnit code representing centimeters.Unit code representing the font-size of the relevant font.Unit code representing the x-height of the relevant font.Unit code representing inches.Unit code representing millimeters.Unit code representing in percentage of the containing element defined by terminal.Unit code representing picas (12 points).Unit code representing pixels.Unit code representing points (1/72nd of an inch).Unit code representing the font-size of the root font. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sizeable.UnitgetUnitFromSymbol(String symbol) toString()static Sizeable.UnitReturns the enum constant of this class with the specified name.static Sizeable.Unit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIXELS
Unit code representing pixels. -
POINTS
Unit code representing points (1/72nd of an inch). -
PICAS
Unit code representing picas (12 points). -
EM
Unit code representing the font-size of the relevant font. -
REM
Unit code representing the font-size of the root font. -
EX
Unit code representing the x-height of the relevant font. -
MM
Unit code representing millimeters. -
CM
Unit code representing centimeters. -
INCH
Unit code representing inches. -
PERCENTAGE
Unit code representing in percentage of the containing element defined by terminal.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSymbol
-
toString
- Overrides:
toStringin classEnum<Sizeable.Unit>
-
getUnitFromSymbol
-