Class SVGOMAnimatedLengthList.BaseSVGLengthList
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGList
org.apache.batik.anim.dom.AbstractSVGLengthList
org.apache.batik.anim.dom.SVGOMAnimatedLengthList.BaseSVGLengthList
- All Implemented Interfaces:
org.w3c.dom.svg.SVGLengthList
- Enclosing class:
SVGOMAnimatedLengthList
SVGLengthList implementation for the base length list value.-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSVGLengthList
AbstractSVGLengthList.LengthListBuilder, AbstractSVGLengthList.SVGLengthItem -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhether the value is malformed.protected booleanWhether the value is missing.Fields inherited from class AbstractSVGLengthList
direction, SVG_LENGTH_LIST_SEPARATORFields inherited from class AbstractSVGList
itemList, valid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DOMExceptioncreateDOMException(short type, String key, Object[] args) Create a DOMException.protected org.w3c.dom.svg.SVGExceptioncreateSVGException(short type, String key, Object[] args) Create a SVGException.protected ElementReturns the element owning the attribute with which this length list is associated.protected StringReturns the value of the DOM attribute containing the length list.protected voidResets the value of the associated attribute.protected voidresetAttribute(SVGItem item) Appends the string representation of the givenSVGItemto the DOM attribute.protected voidInitializes the list, if needed.protected voidsetAttributeValue(String value) Sets the DOM attribute value containing the length list.Methods inherited from class AbstractSVGLengthList
appendItem, checkItemType, createSVGItem, doParse, getItem, getItemSeparator, initialize, insertItemBefore, removeItem, replaceItemMethods inherited from class AbstractSVGList
appendItemImpl, clear, clear, getItemImpl, getNumberOfItems, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, setValueAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.svg.SVGLengthList
clear, getNumberOfItems
-
Field Details
-
missing
protected boolean missingWhether the value is missing. -
malformed
protected boolean malformedWhether the value is malformed.
-
-
Constructor Details
-
BaseSVGLengthList
public BaseSVGLengthList()Creates a new BaseSVGLengthList.
-
-
Method Details
-
createDOMException
Create a DOMException.- Specified by:
createDOMExceptionin classAbstractSVGList
-
createSVGException
Create a SVGException.- Specified by:
createSVGExceptionin classAbstractSVGLengthList- Returns:
- SVGException
-
getElement
Returns the element owning the attribute with which this length list is associated.- Specified by:
getElementin classAbstractSVGLengthList
-
getValueAsString
Returns the value of the DOM attribute containing the length list.- Specified by:
getValueAsStringin classAbstractSVGList
-
setAttributeValue
Sets the DOM attribute value containing the length list.- Specified by:
setAttributeValuein classAbstractSVGList- Parameters:
value- the String representation of the list, or null if the list contains no items
-
resetAttribute
protected void resetAttribute()Resets the value of the associated attribute.- Overrides:
resetAttributein classAbstractSVGList
-
resetAttribute
Appends the string representation of the givenSVGItemto the DOM attribute. This is called in response to an append to the list.- Overrides:
resetAttributein classAbstractSVGList
-
revalidate
protected void revalidate()Initializes the list, if needed.- Overrides:
revalidatein classAbstractSVGList
-