org.apache.batik.dom.svg

Class AbstractSVGTransformList

public abstract class AbstractSVGTransformList extends AbstractSVGList implements SVGTransformList

This class is the implementation of SVGTransformList.
Nested Class Summary
protected classAbstractSVGTransformList.SVGTransformItem
An {@link SVGTransform} in the list.
protected classAbstractSVGTransformList.TransformListBuilder
Helper class to interface the {@link TransformListParser} and the {@link ListHandler}.
Field Summary
static StringSVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.
Method Summary
SVGTransformappendItem(SVGTransform newItem)
DOM: Implements {@link SVGTransformList#appendItem(SVGTransform)}.
protected voidcheckItemType(Object newItem)
Asserts that the given item is an {@link SVGTransformList}.
SVGTransformconsolidate()
DOM: Implements {@link SVGTransformList#consolidate()}.
protected abstract SVGExceptioncreateSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.
protected SVGItemcreateSVGItem(Object newItem)
Creates a new {@link SVGItem} object from the given {@link SVGTransform}.
SVGTransformcreateSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements {@link SVGTransformList#createSVGTransformFromMatrix(SVGMatrix)}.
protected voiddoParse(String value, ListHandler handler)
Parse the attribute associated with this SVGTransformList.
AffineTransformgetAffineTransform()
Returns an {@link AffineTransform} that represents the same transform as that specified by this transform list.
SVGTransformgetItem(int index)
DOM: Implements {@link SVGTransformList#getItem(int)}.
protected StringgetItemSeparator()
Return the separator between transform in the list.
SVGTransforminitialize(SVGTransform newItem)
DOM: Implements {@link SVGTransformList#initialize(SVGTransform)}.
SVGTransforminsertItemBefore(SVGTransform newItem, int index)
DOM: Implements {@link SVGTransformList#insertItemBefore(SVGTransform,int)}.
SVGTransformremoveItem(int index)
DOM: Implements {@link SVGTransformList#removeItem(int)}.
SVGTransformreplaceItem(SVGTransform newItem, int index)
DOM: Implements {@link SVGTransformList#replaceItem(SVGTransform,int)}.

Field Detail

SVG_TRANSFORMATION_LIST_SEPARATOR

public static final String SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.

Method Detail

appendItem

public SVGTransform appendItem(SVGTransform newItem)
DOM: Implements {@link SVGTransformList#appendItem(SVGTransform)}.

checkItemType

protected void checkItemType(Object newItem)
Asserts that the given item is an {@link SVGTransformList}.

consolidate

public SVGTransform consolidate()
DOM: Implements {@link SVGTransformList#consolidate()}.

createSVGException

protected abstract SVGException createSVGException(short type, String key, Object[] args)
Create an SVGException when the checkItemType fails.

Returns: SVGException

createSVGItem

protected SVGItem createSVGItem(Object newItem)
Creates a new {@link SVGItem} object from the given {@link SVGTransform}.

createSVGTransformFromMatrix

public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements {@link SVGTransformList#createSVGTransformFromMatrix(SVGMatrix)}.

doParse

protected void doParse(String value, ListHandler handler)
Parse the attribute associated with this SVGTransformList.

Parameters: value the transform list attribute value handler transform list handler

getAffineTransform

public AffineTransform getAffineTransform()
Returns an {@link AffineTransform} that represents the same transform as that specified by this transform list.

getItem

public SVGTransform getItem(int index)
DOM: Implements {@link SVGTransformList#getItem(int)}.

getItemSeparator

protected String getItemSeparator()
Return the separator between transform in the list.

initialize

public SVGTransform initialize(SVGTransform newItem)
DOM: Implements {@link SVGTransformList#initialize(SVGTransform)}.

insertItemBefore

public SVGTransform insertItemBefore(SVGTransform newItem, int index)
DOM: Implements {@link SVGTransformList#insertItemBefore(SVGTransform,int)}.

removeItem

public SVGTransform removeItem(int index)
DOM: Implements {@link SVGTransformList#removeItem(int)}.

replaceItem

public SVGTransform replaceItem(SVGTransform newItem, int index)
DOM: Implements {@link SVGTransformList#replaceItem(SVGTransform,int)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.