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
Representation of the item SVGNumber.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractSVGList
TheSVGNumberList
this item belongs to.Fields inherited from class org.apache.batik.dom.svg.AbstractSVGNumber
value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list the item belongs to.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 Details
-
parentList
TheSVGNumberList
this item belongs to.
-
-
Constructor Details
-
SVGNumberItem
public SVGNumberItem(float value) Creates a new SVGNumberItem.
-
-
Method Details
-
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
Associates this item to the givenSVGNumberList
. -
getParent
Returns the list the item belongs to. -
reset
protected void reset()Notifies the parentSVGNumberList
that this item's value has changed.
-