Class AbstractSVGItem
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGItem
- All Implemented Interfaces:
SVGItem
- Direct Known Subclasses:
SVGPathSegItem, SVGPointItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringString representation of the item.protected AbstractSVGListList the item belongs to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the parent list of this item.protected abstract StringReturn the string representation of the item.Returns the cached representation of the item if valid, otherwise recomputes the String representation of the item.protected voidNotifies the parent list that the item has changed.voidsetParent(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:
getValueAsStringin interfaceSVGItem- Returns:
- textual representation of the item to be inserted in the attribute value representing the list.
-