Package eu.webtoolkit.jwt
Enum Class LengthUnit
- All Implemented Interfaces:
Serializable
,Comparable<LengthUnit>
,Constable
CSS length unit type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCentimeter (cm)The relative font size (em)The height of an 'x' in the font (ex)Inch (in)Millimeter (mm)Percentage (meaning context-sensitive) (%)Pica (12 Point) (pc)Pixel, relative to canvas resolution (px)Point (1/72 Inch) (pt)A percentage of the viewport's height (vh)A percentage of the viewport's larger dimension (vmax)A percentage of the viewport's smaller dimension (vmin)A percentage of the viewport's width (vw) -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the numerical representation of this enum.static LengthUnit
Returns the enum constant of this class with the specified name.static LengthUnit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FontEm
The relative font size (em) -
FontEx
The height of an 'x' in the font (ex) -
Pixel
Pixel, relative to canvas resolution (px) -
Inch
Inch (in) -
Centimeter
Centimeter (cm) -
Millimeter
Millimeter (mm) -
Point
Point (1/72 Inch) (pt) -
Pica
Pica (12 Point) (pc) -
Percentage
Percentage (meaning context-sensitive) (%) -
ViewportWidth
A percentage of the viewport's width (vw)Note: Internet Explorer only supports vw since version 9
-
ViewportHeight
A percentage of the viewport's height (vh)Note: Internet Explorer only supports vh since version 9
-
ViewportMin
A percentage of the viewport's smaller dimension (vmin)Note: Internet Explorer only supports vmin since version 9
-
ViewportMax
A percentage of the viewport's larger dimension (vmax)Note: Not supported on Internet Explorer
-
-
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
-
getValue
public int getValue()Returns the numerical representation of this enum.
-