org.apache.batik.dom.svg
Class AbstractSVGLengthList
java.lang.Object
|
+--org.apache.batik.dom.svg.AbstractSVGList
|
+--org.apache.batik.dom.svg.AbstractSVGLengthList
- All Implemented Interfaces:
- SVGLengthList
- Direct Known Subclasses:
- SVGOMAnimatedLengthList.SVGOMLengthList
- public abstract class AbstractSVGLengthList
- extends AbstractSVGList
- implements SVGLengthList
This class is the implementation of
SVGLengthList
.
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGList |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
direction
protected short direction
- This length list's direction.
SVG_LENGTH_LIST_SEPARATOR
public static final java.lang.String SVG_LENGTH_LIST_SEPARATOR
- Separator for a length list.
AbstractSVGLengthList
protected AbstractSVGLengthList(short direction)
- Creates a new SVGLengthList.
getItemSeparator
protected java.lang.String getItemSeparator()
- Return the separator between values in the list.
- Overrides:
getItemSeparator
in class AbstractSVGList
- Following copied from class:
org.apache.batik.dom.svg.AbstractSVGList
- Returns:
- separator of items in the list
createSVGException
protected abstract SVGException createSVGException(short type,
java.lang.String key,
java.lang.Object[] args)
- Create an SVGException when the checkItemType fails.
- Returns:
- SVGException
getElement
protected abstract org.w3c.dom.Element getElement()
- return the element owning this SVGLengthList.
initialize
public SVGLength initialize(SVGLength newItem)
throws org.w3c.dom.DOMException,
SVGException
- Specified by:
initialize
in interface SVGLengthList
getItem
public SVGLength getItem(int index)
throws org.w3c.dom.DOMException
- Specified by:
getItem
in interface SVGLengthList
insertItemBefore
public SVGLength insertItemBefore(SVGLength newItem,
int index)
throws org.w3c.dom.DOMException,
SVGException
- Specified by:
insertItemBefore
in interface SVGLengthList
replaceItem
public SVGLength replaceItem(SVGLength newItem,
int index)
throws org.w3c.dom.DOMException,
SVGException
- Specified by:
replaceItem
in interface SVGLengthList
removeItem
public SVGLength removeItem(int index)
throws org.w3c.dom.DOMException
- Specified by:
removeItem
in interface SVGLengthList
appendItem
public SVGLength appendItem(SVGLength newItem)
throws org.w3c.dom.DOMException,
SVGException
- Specified by:
appendItem
in interface SVGLengthList
createSVGItem
protected SVGItem createSVGItem(java.lang.Object newItem)
- Description copied from class:
AbstractSVGList
- Return the item to be placed in the list.
According to the parameter of the real SVGList
represented here by an
Object
the implementation provide an item to be placed
in the list.
- Overrides:
createSVGItem
in class AbstractSVGList
- Following copied from class:
org.apache.batik.dom.svg.AbstractSVGList
- Parameters:
newItem
- paramter of the modification method
of the list- Returns:
- an item to be placed in the list.
doParse
protected void doParse(java.lang.String value,
ListHandler handler)
throws ParseException
- Parse the attribute associated with this SVGLengthList.
- Overrides:
doParse
in class AbstractSVGList
- Parameters:
value
- attribute valuehandler
- list handler
checkItemType
protected void checkItemType(java.lang.Object newItem)
throws SVGException
- Check if the item is an SVGLength.
- Overrides:
checkItemType
in class AbstractSVGList
- Following copied from class:
org.apache.batik.dom.svg.AbstractSVGList
- Parameters:
newItem
- object to test
Copyright © 2004 Apache Software Foundation. All Rights Reserved.