Package ro.sync.ecss.extensions.api
Enum Class WidthRepresentation.Unit
- All Implemented Interfaces:
Serializable
,Comparable<WidthRepresentation.Unit>
,Constable
- Enclosing class:
- WidthRepresentation
The fixed width unit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCentimeters are converted to inches and then multiplied with the dots per inch.The EM is relative to the font size.The EX is relative the the height of the "x" character.Value in inches are multiplied with the dots per inch value.Value in millimeter is converted to inches and then to pixels.Pica is a unit of measure equal to 12 points or one sixth of an inch.Directly in pixels.A point is approximately 1/72 inch. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static WidthRepresentation.Unit
Returns the enum constant of this class with the specified name.static WidthRepresentation.Unit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CENTIMETER
Centimeters are converted to inches and then multiplied with the dots per inch. The value iscm
. -
EM
The EM is relative to the font size. 1 is the font size. The value isem
. -
EX
The EX is relative the the height of the "x" character. The value isex
. -
INCH
Value in inches are multiplied with the dots per inch value. The value isin
. -
MILLIMETER
Value in millimeter is converted to inches and then to pixels. The value ismm
. -
PICA
Pica is a unit of measure equal to 12 points or one sixth of an inch. The value ispc
. -
PIXEL
Directly in pixels. No conversion needed. The value ispx
. -
POINT
A point is approximately 1/72 inch. The value ispt
.
-
-
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
-
toString
- Overrides:
toString
in classEnum<WidthRepresentation.Unit>
- See Also:
-