Package org.apache.batik.dom.svg
Class AbstractSVGItem
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGItem
- All Implemented Interfaces:
SVGItem
- Direct Known Subclasses:
SVGPathSegItem
,SVGPointItem
Adapter for the SVGItem interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
String representation of the item.protected AbstractSVGList
List the item belongs to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the parent list of this item.protected abstract String
Return the string representation of the item.Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.protected void
Notifies the parent list that the item has changed.void
setParent
(AbstractSVGList list) Assigns a parent list to this item.
-
Field Details
-
parent
List the item belongs to. -
itemStringValue
String representation of the item. This is a cached representation of the item while it is not changed.
-
-
Constructor Details
-
AbstractSVGItem
protected AbstractSVGItem()Creates a new AbstractSVGList.
-
-
Method Details
-
getStringValue
Return the string representation of the item. -
setParent
Assigns a parent list to this item. -
getParent
Returns the parent list of this item. -
resetAttribute
protected void resetAttribute()Notifies the parent list that the item has changed. This discards the cached representation of the item. -
getValueAsString
Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.- Specified by:
getValueAsString
in interfaceSVGItem
- Returns:
- textual representation of the item to be inserted in the attribute value representing the list.
-