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 AbstractSVGListTheSVGNumberListthis item belongs to.Fields inherited from class AbstractSVGNumber
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list the item belongs to.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 AbstractSVGNumber
getValue, setValue
-
Field Details
-
parentList
TheSVGNumberListthis 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:
getValueAsStringin 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 parentSVGNumberListthat this item's value has changed.
-