public abstract class AbstractSVGTransformList extends AbstractSVGList
SVGTransformList
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSVGTransformList.SVGTransformItem
An
SVGTransform in the list. |
protected class |
AbstractSVGTransformList.TransformListBuilder
Helper class to interface the
TransformListParser and the
ListHandler . |
AbstractSVGList.ListBuilder
Modifier and Type | Field and Description |
---|---|
static String |
SVG_TRANSFORMATION_LIST_SEPARATOR
Separator for a point list.
|
itemList, valid
Constructor and Description |
---|
AbstractSVGTransformList() |
Modifier and Type | Method and Description |
---|---|
SVGTransform |
appendItem(SVGTransform newItem)
DOM: Implements
SVGTransformList#appendItem(SVGTransform) . |
protected void |
checkItemType(Object newItem)
Asserts that the given item is an
SVGTransformList . |
SVGTransform |
consolidate()
DOM: Implements
SVGTransformList#consolidate() . |
protected abstract SVGException |
createSVGException(short type,
String key,
Object[] args)
Create an SVGException when the checkItemType fails.
|
protected SVGItem |
createSVGItem(Object newItem)
Creates a new
SVGItem object from the given SVGTransform . |
SVGTransform |
createSVGTransformFromMatrix(SVGMatrix matrix)
DOM: Implements
SVGTransformList#createSVGTransformFromMatrix(SVGMatrix) . |
protected void |
doParse(String value,
ListHandler handler)
Parse the attribute associated with this SVGTransformList.
|
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 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) . |
appendItemImpl, clear, clear, createDOMException, getItemImpl, getNumberOfItems, getValueAsString, initializeImpl, insertItemBeforeImpl, invalidate, itemChanged, removeIfNeeded, removeItem, removeItemImpl, replaceItemImpl, resetAttribute, resetAttribute, revalidate, setAttributeValue, setValueAsString
public static final String SVG_TRANSFORMATION_LIST_SEPARATOR
protected String getItemSeparator()
getItemSeparator
in class AbstractSVGList
protected abstract SVGException createSVGException(short type, String key, Object[] args)
public SVGTransform initialize(SVGTransform newItem) throws DOMException, SVGException
SVGTransformList#initialize(SVGTransform)
.DOMException
SVGException
public SVGTransform getItem(int index) throws DOMException
SVGTransformList#getItem(int)
.DOMException
public SVGTransform insertItemBefore(SVGTransform newItem, int index) throws DOMException, SVGException
SVGTransformList#insertItemBefore(SVGTransform,int)
.DOMException
SVGException
public SVGTransform replaceItem(SVGTransform newItem, int index) throws DOMException, SVGException
SVGTransformList#replaceItem(SVGTransform,int)
.DOMException
SVGException
public SVGTransform removeItem(int index) throws DOMException
SVGTransformList#removeItem(int)
.DOMException
public SVGTransform appendItem(SVGTransform newItem) throws DOMException, SVGException
SVGTransformList#appendItem(SVGTransform)
.DOMException
SVGException
public SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
SVGTransformList#createSVGTransformFromMatrix(SVGMatrix)
.public SVGTransform consolidate()
SVGTransformList#consolidate()
.public AffineTransform getAffineTransform()
AffineTransform
that represents the same transform
as that specified by this transform list.protected SVGItem createSVGItem(Object newItem)
SVGItem
object from the given SVGTransform
.createSVGItem
in class AbstractSVGList
newItem
- the SVG objectSVGItem
objectprotected void doParse(String value, ListHandler handler) throws ParseException
doParse
in class AbstractSVGList
value
- the transform list attribute valuehandler
- transform list handlerParseException
protected void checkItemType(Object newItem)
SVGTransformList
.checkItemType
in class AbstractSVGList
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.