Package com.vaadin.server
Enum Sizeable.Unit
- java.lang.Object
-
- java.lang.Enum<Sizeable.Unit>
-
- com.vaadin.server.Sizeable.Unit
-
- All Implemented Interfaces:
Serializable,Comparable<Sizeable.Unit>
- Enclosing interface:
- Sizeable
public static enum Sizeable.Unit extends Enum<Sizeable.Unit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CMUnit code representing centimeters.EMUnit code representing the font-size of the relevant font.EXUnit code representing the x-height of the relevant font.INCHUnit code representing inches.MMUnit code representing millimeters.PERCENTAGEUnit code representing in percentage of the containing element defined by terminal.PICASUnit code representing picas (12 points).PIXELSUnit code representing pixels.POINTSUnit code representing points (1/72nd of an inch).REMUnit code representing the font-size of the root font.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSymbol()static Sizeable.UnitgetUnitFromSymbol(String symbol)StringtoString()static Sizeable.UnitvalueOf(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.
-
-
-
Enum Constant Detail
-
PIXELS
public static final Sizeable.Unit PIXELS
Unit code representing pixels.
-
POINTS
public static final Sizeable.Unit POINTS
Unit code representing points (1/72nd of an inch).
-
PICAS
public static final Sizeable.Unit PICAS
Unit code representing picas (12 points).
-
EM
public static final Sizeable.Unit EM
Unit code representing the font-size of the relevant font.
-
REM
public static final Sizeable.Unit REM
Unit code representing the font-size of the root font.
-
EX
public static final Sizeable.Unit EX
Unit code representing the x-height of the relevant font.
-
MM
public static final Sizeable.Unit MM
Unit code representing millimeters.
-
CM
public static final Sizeable.Unit CM
Unit code representing centimeters.
-
INCH
public static final Sizeable.Unit INCH
Unit code representing inches.
-
PERCENTAGE
public static final Sizeable.Unit PERCENTAGE
Unit code representing in percentage of the containing element defined by terminal.
-
-
Method Detail
-
values
public static Sizeable.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Sizeable.Unit c : Sizeable.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sizeable.Unit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getSymbol
public String getSymbol()
-
toString
public String toString()
- Overrides:
toStringin classEnum<Sizeable.Unit>
-
getUnitFromSymbol
public static Sizeable.Unit getUnitFromSymbol(String symbol)
-
-