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 AbstractSVGList
parentList
TheSVGNumberList
this 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 AbstractSVGList
getParent()
Returns the list the item belongs to.java.lang.String
getValueAsString()
Returns a String representation of the number.protected void
reset()
Notifies the parentSVGNumberList
that this item's value has changed.void
setParent(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
TheSVGNumberList
this item belongs to.
-
-
Method Detail
-
getValueAsString
public java.lang.String getValueAsString()
Returns a String representation of the number.- Specified by:
getValueAsString
in 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 parentSVGNumberList
that this item's value has changed.
-
-