Package de.xima.fc.css.builder
Enum ECssUnit
- All Implemented Interfaces:
Serializable
,Comparable<ECssUnit>
Enumeration of CSS units.
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShortcut forCAPITAL_HEIGHT
.CSS unit for the cap-height in the element's font, approximately equal to the height of a capital Latin letter.CSS unit centimeters. 1cm = 96px/2.54Shortcut forCHARACTER_UNIT
.CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "0" of the element's font.Shortcut forCENTIMETERS
.Shortcut forDEGREES
.CSS unit degree.CSS unit dots per centimeter.CSS unit dots per inch.CSS unit dots per pixel.Shortcut forDOTS_PER_CENTIMETER
.Shortcut forDOTS_PER_INCH
.Shortcut forDOTS_PER_PIXEL
.Shortcut forDYNAMIC_VIEWPORT_HEIGHT
.Shortcut forDYNAMIC_VIEWPORT_WIDTH
.CSS unit for 1% of the dynamic viewport's height.CSS unit for 1% of the dynamic viewport's width.Shortcut forFONT_SIZE
.Shortcut forX_HEIGHT
.CSS unit for the font size of the parent.Shortcut forGRADIANS
.CSS unit gradians.CSS unit for Hertz (1/second).Shortcut forHERTZ
.Shortcut forINTERNATIONAL_CHARACTER_UNIT
.Shortcut forINCHES
.CSS unit inches. 1in = 2.54cm = 96pxCSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "水" of the element's font.Shortcut forKILOHERTZ
.CSS unit for Kilohertz (1000/second).CSS unit for 1% of the large viewport's height.CSS unit for 1% of the large viewport's width.Shortcut forLINE_HEIGHT
.CSS unit for the Line height of the element.Shortcut forLARGE_VIEWPORT_HEIGHT
.Shortcut forLARGE_VIEWPORT_WIDTH
.CSS unit millimeters. 1mm = 1/10th of 1cm.CSS unit milliseconds.Shortcut forMILLIMETERS
.Shortcut forMILLISECONDS
.Shortcut forPICAS
.CSS unit percent.CSS unit picas. 1pc = 1/6th of 1in.CSS unit pixels. 1px = 1/96th of 1in.CSS unit points. 1pt = 1/72th of 1in.Shortcut forPOINTS
.Shortcut forPIXELS
.Shortcut forQUARTER_MILLIMETERS
.CSS unit quarter millimeters. 1Q = 1/40th of 1cm.Shortcut forRADIANS
.CSS unit radians.Shortcut forROOT_CHARACTER_UNIT
.Shortcut forROOT_FONT_SIZE
.Shortcut forROOT_X_HEIGHT
.Shortcut forROOT_INTERNATIONAL_CHARACTER_UNIT
.Shortcut forROOT_LINE_HEIGHT
.Shortcut forROOT_CAPITAL_HEIGHT
.CSS unit for the cap-height in the root element's font, approximately equal to the height of a capital Latin letter.CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "0" of the root element's font.CSS unit for the font size of the root element.CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "水" of the root element's font.CSS unit for the Line height of the element of the root element.CSS unit for the x-height of the root element's font.Shortcut forSECONDS
.CSS unit seconds.CSS unit for 1% of the small viewport's height.CSS unit for 1% of the small viewport's width.Shortcut forSMALL_VIEWPORT_HEIGHT
.Shortcut forSMALL_VIEWPORT_WIDTH
.Shortcut forTURNS
.CSS unit turns (1 turn = 360 degrees).Shortcut forVIEWPORT_BLOCK_AXIS
.Shortcut forVIEWPORT_HEIGHT
.Shortcut forVIEWPORT_INLINE_AXIS
.CSS unit for 1% of the size of the initial containing block in the direction of the root element's block axis.CSS unit 1% of the viewport's height.CSS unit for 1% of the size of the initial containing block in the direction of the root element's inline axis.CSS unit for 1% of the viewport's large dimensionCSS unit for 1% of the viewport's smaller dimensionCSS unit for 1% of the viewport's width..Shortcut forVIEWPORT_MAX
.Shortcut forVIEWPORT_MIN
.Shortcut forVIEWPORT_WIDTH
.CSS unit for the x-height of the element's font. -
Method Summary
-
Enum Constant Details
-
CAPITAL_HEIGHT
CSS unit for the cap-height in the element's font, approximately equal to the height of a capital Latin letter. -
CAP
Shortcut forCAPITAL_HEIGHT
. -
CENTIMETERS
CSS unit centimeters. 1cm = 96px/2.54 -
CM
Shortcut forCENTIMETERS
. -
CHARACTER_UNIT
CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "0" of the element's font. -
CH
Shortcut forCHARACTER_UNIT
. -
DEGREES
CSS unit degree. -
DEG
Shortcut forDEGREES
. -
DOTS_PER_CENTIMETER
CSS unit dots per centimeter. -
DPCM
Shortcut forDOTS_PER_CENTIMETER
. -
DOTS_PER_INCH
CSS unit dots per inch. -
DPI
Shortcut forDOTS_PER_INCH
. -
DOTS_PER_PIXEL
CSS unit dots per pixel. -
DPPX
Shortcut forDOTS_PER_PIXEL
. -
DYNAMIC_VIEWPORT_HEIGHT
CSS unit for 1% of the dynamic viewport's height. -
DVH
Shortcut forDYNAMIC_VIEWPORT_HEIGHT
. -
DYNAMIC_VIEWPORT_WIDTH
CSS unit for 1% of the dynamic viewport's width. -
DVW
Shortcut forDYNAMIC_VIEWPORT_WIDTH
. -
FONT_SIZE
CSS unit for the font size of the parent. -
EM
Shortcut forFONT_SIZE
. -
GRADIANS
CSS unit gradians. -
GRAD
Shortcut forGRADIANS
. -
HERTZ
CSS unit for Hertz (1/second). -
HZ
Shortcut forHERTZ
. -
INCHES
CSS unit inches. 1in = 2.54cm = 96px -
IN
Shortcut forINCHES
. -
INTERNATIONAL_CHARACTER_UNIT
CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "水" of the element's font. -
IC
Shortcut forINTERNATIONAL_CHARACTER_UNIT
. -
KILOHERTZ
CSS unit for Kilohertz (1000/second). -
KHZ
Shortcut forKILOHERTZ
. -
LARGE_VIEWPORT_HEIGHT
CSS unit for 1% of the large viewport's height. -
LVH
Shortcut forLARGE_VIEWPORT_HEIGHT
. -
LARGE_VIEWPORT_WIDTH
CSS unit for 1% of the large viewport's width. -
LVW
Shortcut forLARGE_VIEWPORT_WIDTH
. -
LINE_HEIGHT
CSS unit for the Line height of the element. -
LH
Shortcut forLINE_HEIGHT
. -
MILLIMETERS
CSS unit millimeters. 1mm = 1/10th of 1cm. -
MM
Shortcut forMILLIMETERS
. -
MILLISECONDS
CSS unit milliseconds. There are 1000 milliseconds in a second. -
MS
Shortcut forMILLISECONDS
. -
PERCENT
CSS unit percent. -
PICAS
CSS unit picas. 1pc = 1/6th of 1in. -
PC
Shortcut forPICAS
. -
PIXELS
CSS unit pixels. 1px = 1/96th of 1in. -
PX
Shortcut forPIXELS
. -
POINTS
CSS unit points. 1pt = 1/72th of 1in. -
PT
Shortcut forPOINTS
. -
QUARTER_MILLIMETERS
CSS unit quarter millimeters. 1Q = 1/40th of 1cm. -
Q
Shortcut forQUARTER_MILLIMETERS
. -
RADIANS
CSS unit radians. -
RAD
Shortcut forRADIANS
. -
ROOT_CAPITAL_HEIGHT
CSS unit for the cap-height in the root element's font, approximately equal to the height of a capital Latin letter. -
ROOT_CAP
Shortcut forROOT_CAPITAL_HEIGHT
. -
ROOT_CHARACTER_UNIT
CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "0" of the root element's font. -
RCH
Shortcut forROOT_CHARACTER_UNIT
. -
ROOT_FONT_SIZE
CSS unit for the font size of the root element. -
REM
Shortcut forROOT_FONT_SIZE
. -
ROOT_INTERNATIONAL_CHARACTER_UNIT
CSS unit for the advance measure (advance width or height, whichever is in the inline axis of the element) of the glyph "水" of the root element's font. -
RIC
Shortcut forROOT_INTERNATIONAL_CHARACTER_UNIT
. -
ROOT_LINE_HEIGHT
CSS unit for the Line height of the element of the root element. -
RLH
Shortcut forROOT_LINE_HEIGHT
. -
ROOT_X_HEIGHT
CSS unit for the x-height of the root element's font. -
REX
Shortcut forROOT_X_HEIGHT
. -
SECONDS
CSS unit seconds. -
S
Shortcut forSECONDS
. -
SMALL_VIEWPORT_HEIGHT
CSS unit for 1% of the small viewport's height. -
SVH
Shortcut forSMALL_VIEWPORT_HEIGHT
. -
SMALL_VIEWPORT_WIDTH
CSS unit for 1% of the small viewport's width. -
SVW
Shortcut forSMALL_VIEWPORT_WIDTH
. -
TURNS
CSS unit turns (1 turn = 360 degrees). -
TURN
Shortcut forTURNS
. -
VIEWPORT_BLOCK_AXIS
CSS unit for 1% of the size of the initial containing block in the direction of the root element's block axis. -
VB
Shortcut forVIEWPORT_BLOCK_AXIS
. -
VIEWPORT_INLINE_AXIS
CSS unit for 1% of the size of the initial containing block in the direction of the root element's inline axis. -
VI
Shortcut forVIEWPORT_INLINE_AXIS
. -
VIEWPORT_HEIGHT
CSS unit 1% of the viewport's height. -
VH
Shortcut forVIEWPORT_HEIGHT
. -
VIEWPORT_MAX
CSS unit for 1% of the viewport's large dimension -
VMAX
Shortcut forVIEWPORT_MAX
. -
VIEWPORT_MIN
CSS unit for 1% of the viewport's smaller dimension -
VMIN
Shortcut forVIEWPORT_MIN
. -
VIEWPORT_WIDTH
CSS unit for 1% of the viewport's width.. -
VW
Shortcut forVIEWPORT_WIDTH
. -
X_HEIGHT
CSS unit for the x-height of the element's font. -
EX
Shortcut forX_HEIGHT
.
-
-
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
-
toString
-
value
- Returns:
- The value that can be used for building CSS strings with this unit.
-
amount
- Parameters:
value
- Numerical value.- Returns:
- The value together with the unit, e.g.
10px
or5%
.
-
amount
- Parameters:
value
- Numerical value.- Returns:
- The value together with the unit, e.g.
10px
or5%
.
-