|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.dom.svg.AbstractSVGLengthList
public abstract class AbstractSVGLengthList
This class is the implementation of
SVGLengthList
.
Nested Class Summary | |
---|---|
protected class |
AbstractSVGLengthList.LengthListBuilder
Helper class to interface the LengthListParser and the
ListHandler . |
protected class |
AbstractSVGLengthList.SVGLengthItem
An SVGLength in the list. |
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGList |
---|
AbstractSVGList.ListBuilder |
Field Summary | |
---|---|
protected short |
direction
This length list's direction. |
static java.lang.String |
SVG_LENGTH_LIST_SEPARATOR
Separator for a length list. |
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList |
---|
itemList, valid |
Constructor Summary | |
---|---|
protected |
AbstractSVGLengthList(short direction)
Creates a new SVGLengthList. |
Method Summary | |
---|---|
org.w3c.dom.svg.SVGLength |
appendItem(org.w3c.dom.svg.SVGLength newItem)
DOM: Implements SVGLengthList.appendItem(SVGLength) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item is an SVGLengthList . |
protected abstract org.w3c.dom.svg.SVGException |
createSVGException(short type,
java.lang.String key,
java.lang.Object[] args)
Create an SVGException when the checkItemType fails. |
protected SVGItem |
createSVGItem(java.lang.Object newItem)
Creates a new SVGItem object from the given SVGLength . |
protected void |
doParse(java.lang.String value,
ListHandler handler)
Parses the attribute associated with this SVGLengthList. |
protected abstract org.w3c.dom.Element |
getElement()
Returns the element owning this SVGLengthList. |
org.w3c.dom.svg.SVGLength |
getItem(int index)
DOM: Implements SVGLengthList.getItem(int) . |
protected java.lang.String |
getItemSeparator()
Return the separator between values in the list. |
org.w3c.dom.svg.SVGLength |
initialize(org.w3c.dom.svg.SVGLength newItem)
DOM: Implements SVGLengthList.initialize(SVGLength) . |
org.w3c.dom.svg.SVGLength |
insertItemBefore(org.w3c.dom.svg.SVGLength newItem,
int index)
DOM: Implements SVGLengthList.insertItemBefore(SVGLength,int) . |
org.w3c.dom.svg.SVGLength |
removeItem(int index)
DOM: Implements SVGLengthList.removeItem(int) . |
org.w3c.dom.svg.SVGLength |
replaceItem(org.w3c.dom.svg.SVGLength newItem,
int index)
DOM: Implements SVGLengthList.replaceItem(SVGLength,int) . |
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 |
Methods inherited from interface org.w3c.dom.svg.SVGLengthList |
---|
clear, getNumberOfItems |
Field Detail |
---|
protected short direction
public static final java.lang.String SVG_LENGTH_LIST_SEPARATOR
Constructor Detail |
---|
protected AbstractSVGLengthList(short direction)
Method Detail |
---|
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract org.w3c.dom.svg.SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
protected abstract org.w3c.dom.Element getElement()
public org.w3c.dom.svg.SVGLength initialize(org.w3c.dom.svg.SVGLength newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
SVGLengthList.initialize(SVGLength)
.
initialize
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGLength getItem(int index) throws org.w3c.dom.DOMException
SVGLengthList.getItem(int)
.
getItem
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
public org.w3c.dom.svg.SVGLength insertItemBefore(org.w3c.dom.svg.SVGLength newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
SVGLengthList.insertItemBefore(SVGLength,int)
.
insertItemBefore
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGLength replaceItem(org.w3c.dom.svg.SVGLength newItem, int index) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
SVGLengthList.replaceItem(SVGLength,int)
.
replaceItem
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
public org.w3c.dom.svg.SVGLength removeItem(int index) throws org.w3c.dom.DOMException
SVGLengthList.removeItem(int)
.
removeItem
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
public org.w3c.dom.svg.SVGLength appendItem(org.w3c.dom.svg.SVGLength newItem) throws org.w3c.dom.DOMException, org.w3c.dom.svg.SVGException
SVGLengthList.appendItem(SVGLength)
.
appendItem
in interface org.w3c.dom.svg.SVGLengthList
org.w3c.dom.DOMException
org.w3c.dom.svg.SVGException
protected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem
object from the given SVGLength
.
createSVGItem
in class AbstractSVGList
newItem
- the SVG object
SVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- attribute valuehandler
- length list handler
ParseException
protected void checkItemType(java.lang.Object newItem) throws org.w3c.dom.svg.SVGException
SVGLengthList
.
checkItemType
in class AbstractSVGList
org.w3c.dom.svg.SVGException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |