Package com.scroogexhtml.css
Enum LengthUnit
- All Implemented Interfaces:
Serializable
,Comparable<LengthUnit>
This enum defines available font size units.
see: EM, PX, PT, CM, IN… see: ... see: ... see: ...
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LengthUnit
Returns the enum constant of this type with the specified name.static LengthUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POINT
Absolute unit 'point'.This unit should be considered obsolete. See EM, PX, PT, CM, IN… However, RTF specifies font sizes in (half-)points.
-
EM
Relative unit "em". -
PX
Absolute unit 'pixel'."The magic unit of CSS, the px, is often a good unit to use, especially if the style requires alignment of text to images" But for font sizes it is even better to use em. (...)" EM, PX, PT, CM, IN…
-
VW
Relative unit 'vw'. -
PERCENT
Relative unit 'percent'. Represents a percentage value, typically used to define sizes relative to another element or context.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getCssUnit
-