java.lang.Object
org.apache.batik.dom.svg.AbstractSVGItem
- All Implemented Interfaces:
- SVGItem
- Direct Known Subclasses:
- AbstractSVGPathSegList.SVGPathSegItem, AbstractSVGPointList.SVGPointItem
- public abstract class AbstractSVGItem
- extends java.lang.Object
- implements SVGItem
Adapter for the SVGItem interface.
- Version:
- $Id: AbstractSVGItem.java,v 1.3 2004/08/18 07:13:13 vhardy Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected AbstractSVGList parent
- List the item belongs to.
itemStringValue
protected java.lang.String itemStringValue
- String representation of the item.
This is a cached representation of the
item while it is not changed.
AbstractSVGItem
protected AbstractSVGItem()
getStringValue
protected abstract java.lang.String getStringValue()
- Return the string representation of the item.
setParent
public void setParent(AbstractSVGList list)
- Assign a parent list to this item.
- Specified by:
setParent in interface SVGItem
getParent
public AbstractSVGList getParent()
- Return the parent list of the item.
- Specified by:
getParent in interface SVGItem
resetAttribute
protected void resetAttribute()
- Notifies the parent list that
the item has changed.
Discard the cached representation
of the item.
getValueAsString
public java.lang.String getValueAsString()
- Return the cached representation
of the item if valid otherwise
re-computes the String representation
of the item.
- Specified by:
getValueAsString in interface SVGItem