|
||||||||||
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.AbstractSVGTransformList
public abstract class AbstractSVGTransformList
This class is the implementation of
SVGTransformList
.
Nested Class Summary | |
---|---|
protected class |
AbstractSVGTransformList.SVGTransformItem
An SVGTransform in the list. |
protected class |
AbstractSVGTransformList.TransformListBuilder
Helper class to interface the TransformListParser and the
ListHandler . |
Nested classes/interfaces inherited from class org.apache.batik.dom.svg.AbstractSVGList |
---|
AbstractSVGList.ListBuilder |
Field Summary | |
---|---|
static java.lang.String |
SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list. |
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGList |
---|
itemList, valid |
Constructor Summary | |
---|---|
AbstractSVGTransformList()
|
Method Summary | |
---|---|
SVGTransform |
appendItem(SVGTransform newItem)
DOM: Implements SVGTransformList#appendItem(SVGTransform) . |
protected void |
checkItemType(java.lang.Object newItem)
Asserts that the given item is an SVGTransformList . |
SVGTransform |
consolidate()
DOM: Implements SVGTransformList#consolidate() . |
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 SVGTransform . |
SVGTransform |
createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements SVGTransformList#createSVGTransformFromMatrix(SVGMatrix) . |
protected void |
doParse(java.lang.String value,
ListHandler handler)
Parse the attribute associated with this SVGTransformList. |
java.awt.geom.AffineTransform |
getAffineTransform()
Returns an AffineTransform that represents the same transform
as that specified by this transform list. |
SVGTransform |
getItem(int index)
DOM: Implements SVGTransformList#getItem(int) . |
protected java.lang.String |
getItemSeparator()
Return the separator between transform in the list. |
SVGTransform |
initialize(SVGTransform newItem)
DOM: Implements SVGTransformList#initialize(SVGTransform) . |
SVGTransform |
insertItemBefore(SVGTransform newItem,
int index)
DOM: Implements SVGTransformList#insertItemBefore(SVGTransform,int) . |
SVGTransform |
removeItem(int index)
DOM: Implements SVGTransformList#removeItem(int) . |
SVGTransform |
replaceItem(SVGTransform newItem,
int index)
DOM: Implements SVGTransformList#replaceItem(SVGTransform,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 |
Field Detail |
---|
public static final java.lang.String SVG_TRANSFORMATION_LIST_SEPARATOR
Constructor Detail |
---|
public AbstractSVGTransformList()
Method Detail |
---|
protected java.lang.String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, java.lang.String key, java.lang.Object[] args)
public SVGTransform initialize(SVGTransform newItem) throws org.w3c.dom.DOMException, SVGException
SVGTransformList#initialize(SVGTransform)
.
org.w3c.dom.DOMException
SVGException
public SVGTransform getItem(int index) throws org.w3c.dom.DOMException
SVGTransformList#getItem(int)
.
org.w3c.dom.DOMException
public SVGTransform insertItemBefore(SVGTransform newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGTransformList#insertItemBefore(SVGTransform,int)
.
org.w3c.dom.DOMException
SVGException
public SVGTransform replaceItem(SVGTransform newItem, int index) throws org.w3c.dom.DOMException, SVGException
SVGTransformList#replaceItem(SVGTransform,int)
.
org.w3c.dom.DOMException
SVGException
public SVGTransform removeItem(int index) throws org.w3c.dom.DOMException
SVGTransformList#removeItem(int)
.
org.w3c.dom.DOMException
public SVGTransform appendItem(SVGTransform newItem) throws org.w3c.dom.DOMException, SVGException
SVGTransformList#appendItem(SVGTransform)
.
org.w3c.dom.DOMException
SVGException
public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
SVGTransformList#createSVGTransformFromMatrix(SVGMatrix)
.
public SVGTransform consolidate()
SVGTransformList#consolidate()
.
public java.awt.geom.AffineTransform getAffineTransform()
AffineTransform
that represents the same transform
as that specified by this transform list.
protected SVGItem createSVGItem(java.lang.Object newItem)
SVGItem
object from the given SVGTransform
.
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
- the transform list attribute valuehandler
- transform list handler
ParseException
protected void checkItemType(java.lang.Object newItem)
SVGTransformList
.
checkItemType
in class AbstractSVGList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |