Class Measure
java.lang.Object
org.eclipse.e4.ui.css.core.impl.dom.AbstractCSSNode
org.eclipse.e4.ui.css.core.impl.dom.CSSValueImpl
org.eclipse.e4.ui.css.core.impl.dom.Measure
- All Implemented Interfaces:
CSSPrimitiveValue
,CSSValue
-
Field Summary
Fields inherited from interface org.w3c.dom.css.CSSPrimitiveValue
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URI
Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getFloatValue
(short valueType) Return a float representation of the receiver's value.int
getIntegerValue
(short valueType) Return an int representation of the receiver's value.short
Methods inherited from class org.eclipse.e4.ui.css.core.impl.dom.CSSValueImpl
getCounterValue, getCssValueType, getRectValue, getRGBColorValue, setCssText, setFloatValue, setStringValue
Methods inherited from class org.eclipse.e4.ui.css.core.impl.dom.AbstractCSSNode
getCSSParser
-
Constructor Details
-
Measure
public Measure(org.w3c.css.sac.LexicalUnit value)
-
-
Method Details
-
getFloatValue
Return a float representation of the receiver's value.- Specified by:
getFloatValue
in interfaceCSSPrimitiveValue
- Overrides:
getFloatValue
in classCSSValueImpl
- Parameters:
valueType
- a short representing the value type, seeCSSValue.getCssValueType()
- Throws:
DOMException
-
getIntegerValue
Return an int representation of the receiver's value.- Parameters:
valueType
- a short representing the value type, seeCSSValue.getCssValueType()
- Throws:
DOMException
-
getStringValue
- Specified by:
getStringValue
in interfaceCSSPrimitiveValue
- Overrides:
getStringValue
in classCSSValueImpl
- Throws:
DOMException
-
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveType
in interfaceCSSPrimitiveValue
- Overrides:
getPrimitiveType
in classCSSValueImpl
-
getCssText
- Specified by:
getCssText
in interfaceCSSValue
- Overrides:
getCssText
in classCSSValueImpl
-