public abstract class AbstractSVGLengthList extends AbstractSVGList
SVGLengthList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGLengthList.LengthListBuilder
Helper class to interface the
LengthListParser and the
ListHandler . |
protected class |
AbstractSVGLengthList.SVGLengthItem
An
SVGLength in the list. |
AbstractSVGList.ListBuilder
Modifier and Type | Field and Description |
---|---|
protected short |
direction
This length list's direction.
|
static java.lang.String |
SVG_LENGTH_LIST_SEPARATOR
Separator for a length list.
|
itemList, valid
Modifier | Constructor and Description |
---|---|
protected |
AbstractSVGLengthList(short direction)
Creates a new SVGLengthList.
|
Modifier and Type | Method and Description |
---|---|
SVGLength |
appendItem(SVGLength newItem)
DOM: Implements
SVGLengthList#appendItem(SVGLength) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item is an
SVGLengthList . |
protected abstract 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.
|
SVGLength |
getItem(int index)
DOM: Implements
SVGLengthList#getItem(int) . |
protected java.lang.String |
getItemSeparator()
Return the separator between values in the list.
|
SVGLength |
initialize(SVGLength newItem)
DOM: Implements
SVGLengthList#initialize(SVGLength) . |
SVGLength |
insertItemBefore(SVGLength newItem,
int index)
DOM: Implements
SVGLengthList#insertItemBefore(SVGLength,int) . |
SVGLength |
removeItem(int index)
DOM: Implements
SVGLengthList#removeItem(int) . |
SVGLength |
replaceItem(SVGLength newItem,
int index)
DOM: Implements
SVGLengthList#replaceItem(SVGLength,int) . |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
protected short direction
public static final java.lang.String SVG_LENGTH_LIST_SEPARATOR
protected AbstractSVGLengthList(short direction)
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
protected abstract org.w3c.dom.Element getElement()
public SVGLength initialize(SVGLength newItem) throws org.w3c.dom.DOMException, SVGException
SVGLengthList#initialize(SVGLength)
.org.w3c.dom.DOMException
SVGException
public SVGLength getItem(int index) throws org.w3c.dom.DOMException
SVGLengthList#getItem(int)
.org.w3c.dom.DOMException
public SVGLength insertItemBefore(SVGLength newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGLengthList#insertItemBefore(SVGLength,int)
.org.w3c.dom.DOMException
SVGException
public SVGLength replaceItem(SVGLength newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGLengthList#replaceItem(SVGLength,int)
.org.w3c.dom.DOMException
SVGException
public SVGLength removeItem(int index) throws org.w3c.dom.DOMException
SVGLengthList#removeItem(int)
.org.w3c.dom.DOMException
public SVGLength appendItem(SVGLength newItem) throws org.w3c.dom.DOMException, SVGException
SVGLengthList#appendItem(SVGLength)
.org.w3c.dom.DOMException
SVGException
protected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem
object from the given SVGLength
.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(java.lang.String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- attribute valuehandler
- length list handlerParseException
protected void checkItemType(java.lang.Object newItem) throws SVGException
SVGLengthList
.checkItemType
in class AbstractSVGList
SVGException
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.