Package org.apache.batik.dom.svg
Class SVGNumberItem
- java.lang.Object
-
- org.apache.batik.dom.svg.AbstractSVGNumber
-
- org.apache.batik.dom.svg.SVGNumberItem
-
- All Implemented Interfaces:
SVGItem,org.w3c.dom.svg.SVGNumber
public class SVGNumberItem extends AbstractSVGNumber implements SVGItem
Representation of the item SVGNumber.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractSVGListparentListTheSVGNumberListthis item belongs to.-
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGNumber
value
-
-
Constructor Summary
Constructors Constructor Description SVGNumberItem(float value)Creates a new SVGNumberItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSVGListgetParent()Returns the list the item belongs to.java.lang.StringgetValueAsString()Returns a String representation of the number.protected voidreset()Notifies the parentSVGNumberListthat this item's value has changed.voidsetParent(AbstractSVGList list)Associates this item to the givenSVGNumberList.-
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGNumber
getValue, setValue
-
-
-
-
Field Detail
-
parentList
protected AbstractSVGList parentList
TheSVGNumberListthis item belongs to.
-
-
Method Detail
-
getValueAsString
public java.lang.String getValueAsString()
Returns a String representation of the number.- Specified by:
getValueAsStringin interfaceSVGItem- Returns:
- textual representation of the item to be inserted in the attribute value representing the list.
-
setParent
public void setParent(AbstractSVGList list)
Associates this item to the givenSVGNumberList.
-
getParent
public AbstractSVGList getParent()
Returns the list the item belongs to.
-
reset
protected void reset()
Notifies the parentSVGNumberListthat this item's value has changed.
-
-