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 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_URIFields inherited from interface CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetFloatValue(short valueType) Return a float representation of the receiver's value.intgetIntegerValue(short valueType) Return an int representation of the receiver's value.shortMethods inherited from class CSSValueImpl
getCounterValue, getCssValueType, getRectValue, getRGBColorValue, setCssText, setFloatValue, setStringValueMethods inherited from class 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:
getFloatValuein interfaceCSSPrimitiveValue- Overrides:
getFloatValuein 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:
getStringValuein interfaceCSSPrimitiveValue- Overrides:
getStringValuein classCSSValueImpl- Throws:
DOMException
-
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveTypein interfaceCSSPrimitiveValue- Overrides:
getPrimitiveTypein classCSSValueImpl
-
getCssText
- Specified by:
getCssTextin interfaceCSSValue- Overrides:
getCssTextin classCSSValueImpl
-