Class CSSLexicalUnit.DimensionLexicalUnit
java.lang.Object
org.apache.batik.css.parser.CSSLexicalUnit
org.apache.batik.css.parser.CSSLexicalUnit.DimensionLexicalUnit
- All Implemented Interfaces:
org.w3c.css.sac.LexicalUnit
- Enclosing class:
CSSLexicalUnit
This class represents a dimension unit.
-
Nested Class Summary
Nested classes/interfaces inherited from class CSSLexicalUnit
CSSLexicalUnit.DimensionLexicalUnit, CSSLexicalUnit.FloatLexicalUnit, CSSLexicalUnit.FunctionLexicalUnit, CSSLexicalUnit.IntegerLexicalUnit, CSSLexicalUnit.PredefinedFunctionLexicalUnit, CSSLexicalUnit.SimpleLexicalUnit, CSSLexicalUnit.StringLexicalUnit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe dimension.protected floatThe float value.Fields inherited from class CSSLexicalUnit
lexicalUnitType, nextLexicalUnit, previousLexicalUnit, TEXT_COUNTER_FUNCTION, TEXT_COUNTERS_FUNCTION, TEXT_RECT_FUNCTION, TEXT_RGBCOLOR, UNIT_TEXT_CENTIMETER, UNIT_TEXT_DEGREE, UNIT_TEXT_EM, UNIT_TEXT_EX, UNIT_TEXT_GRADIAN, UNIT_TEXT_HERTZ, UNIT_TEXT_INCH, UNIT_TEXT_KILOHERTZ, UNIT_TEXT_MILLIMETER, UNIT_TEXT_MILLISECOND, UNIT_TEXT_PERCENTAGE, UNIT_TEXT_PICA, UNIT_TEXT_PIXEL, UNIT_TEXT_POINT, UNIT_TEXT_RADIAN, UNIT_TEXT_REAL, UNIT_TEXT_SECONDFields inherited from interface org.w3c.css.sac.LexicalUnit
SAC_ATTR, SAC_CENTIMETER, SAC_COUNTER_FUNCTION, SAC_COUNTERS_FUNCTION, SAC_DEGREE, SAC_DIMENSION, SAC_EM, SAC_EX, SAC_FUNCTION, SAC_GRADIAN, SAC_HERTZ, SAC_IDENT, SAC_INCH, SAC_INHERIT, SAC_INTEGER, SAC_KILOHERTZ, SAC_MILLIMETER, SAC_MILLISECOND, SAC_OPERATOR_COMMA, SAC_OPERATOR_EXP, SAC_OPERATOR_GE, SAC_OPERATOR_GT, SAC_OPERATOR_LE, SAC_OPERATOR_LT, SAC_OPERATOR_MINUS, SAC_OPERATOR_MOD, SAC_OPERATOR_MULTIPLY, SAC_OPERATOR_PLUS, SAC_OPERATOR_SLASH, SAC_OPERATOR_TILDE, SAC_PERCENTAGE, SAC_PICA, SAC_PIXEL, SAC_POINT, SAC_RADIAN, SAC_REAL, SAC_RECT_FUNCTION, SAC_RGBCOLOR, SAC_SECOND, SAC_STRING_VALUE, SAC_SUB_EXPRESSION, SAC_UNICODERANGE, SAC_URI -
Constructor Summary
ConstructorsConstructorDescriptionDimensionLexicalUnit(float val, String dim, org.w3c.css.sac.LexicalUnit prev) Creates a new LexicalUnit. -
Method Summary
Modifier and TypeMethodDescriptionSAC: ImplementsLexicalUnit.getDimensionUnitText().floatSAC: ImplementsLexicalUnit.getFloatValue().Methods inherited from class CSSLexicalUnit
createDimension, createFloat, createFunction, createInteger, createPredefinedFunction, createSimple, createString, getFunctionName, getIntegerValue, getLexicalUnitType, getNextLexicalUnit, getParameters, getPreviousLexicalUnit, getStringValue, getSubValues, setNextLexicalUnit, setPreviousLexicalUnit
-
Field Details
-
value
protected float valueThe float value. -
dimension
The dimension.
-
-
Constructor Details
-
DimensionLexicalUnit
Creates a new LexicalUnit.
-
-
Method Details
-
getFloatValue
public float getFloatValue()SAC: ImplementsLexicalUnit.getFloatValue().- Specified by:
getFloatValuein interfaceorg.w3c.css.sac.LexicalUnit- Overrides:
getFloatValuein classCSSLexicalUnit
-
getDimensionUnitText
SAC: ImplementsLexicalUnit.getDimensionUnitText().- Specified by:
getDimensionUnitTextin interfaceorg.w3c.css.sac.LexicalUnit- Overrides:
getDimensionUnitTextin classCSSLexicalUnit
-