Package org.apache.batik.css.dom
Class CSSOMValue.AbstractComponent
- java.lang.Object
-
- org.apache.batik.css.dom.CSSOMValue.AbstractComponent
-
- All Implemented Interfaces:
org.w3c.dom.css.CSSPrimitiveValue
,org.w3c.dom.css.CSSValue
- Direct Known Subclasses:
CSSOMValue.FloatComponent
,CSSOMValue.ListComponent
- Enclosing class:
- CSSOMValue
protected abstract class CSSOMValue.AbstractComponent extends java.lang.Object implements org.w3c.dom.css.CSSPrimitiveValue
To store a component.
-
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.css.Counter
getCounterValue()
DOM: ImplementsCSSPrimitiveValue.getCounterValue()
.java.lang.String
getCssText()
DOM: ImplementsCSSValue.getCssText()
.short
getCssValueType()
DOM: ImplementsCSSValue.getCssValueType()
.float
getFloatValue(short unitType)
DOM: ImplementsCSSPrimitiveValue.getFloatValue(short)
.int
getLength()
DOM: ImplementsCSSValueList.getLength()
.short
getPrimitiveType()
DOM: ImplementsCSSPrimitiveValue.getPrimitiveType()
.org.w3c.dom.css.Rect
getRectValue()
DOM: ImplementsCSSPrimitiveValue.getRectValue()
.org.w3c.dom.css.RGBColor
getRGBColorValue()
DOM: ImplementsCSSPrimitiveValue.getRGBColorValue()
.java.lang.String
getStringValue()
DOM: ImplementsCSSPrimitiveValue.getStringValue()
.protected abstract Value
getValue()
The returns the actual value of this component.org.w3c.dom.css.CSSValue
item(int index)
DOM: ImplementsCSSValueList.item(int)
.
-
-
-
Method Detail
-
getValue
protected abstract Value getValue()
The returns the actual value of this component.
-
getCssText
public java.lang.String getCssText()
DOM: ImplementsCSSValue.getCssText()
.- Specified by:
getCssText
in interfaceorg.w3c.dom.css.CSSValue
-
getCssValueType
public short getCssValueType()
DOM: ImplementsCSSValue.getCssValueType()
.- Specified by:
getCssValueType
in interfaceorg.w3c.dom.css.CSSValue
-
getPrimitiveType
public short getPrimitiveType()
DOM: ImplementsCSSPrimitiveValue.getPrimitiveType()
.- Specified by:
getPrimitiveType
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
-
getFloatValue
public float getFloatValue(short unitType) throws org.w3c.dom.DOMException
DOM: ImplementsCSSPrimitiveValue.getFloatValue(short)
.- Specified by:
getFloatValue
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getStringValue
public java.lang.String getStringValue() throws org.w3c.dom.DOMException
DOM: ImplementsCSSPrimitiveValue.getStringValue()
.- Specified by:
getStringValue
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getCounterValue
public org.w3c.dom.css.Counter getCounterValue() throws org.w3c.dom.DOMException
DOM: ImplementsCSSPrimitiveValue.getCounterValue()
.- Specified by:
getCounterValue
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getRectValue
public org.w3c.dom.css.Rect getRectValue() throws org.w3c.dom.DOMException
DOM: ImplementsCSSPrimitiveValue.getRectValue()
.- Specified by:
getRectValue
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getRGBColorValue
public org.w3c.dom.css.RGBColor getRGBColorValue() throws org.w3c.dom.DOMException
DOM: ImplementsCSSPrimitiveValue.getRGBColorValue()
.- Specified by:
getRGBColorValue
in interfaceorg.w3c.dom.css.CSSPrimitiveValue
- Throws:
org.w3c.dom.DOMException
-
getLength
public int getLength()
DOM: ImplementsCSSValueList.getLength()
.
-
item
public org.w3c.dom.css.CSSValue item(int index)
DOM: ImplementsCSSValueList.item(int)
.
-
-