public class JsSVGTransformList extends JsElementalMixinBase implements SVGTransformList
SVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
JsSVGTransformList() |
Modifier and Type | Method and Description |
---|---|
JsSVGTransform |
appendItem(SVGTransform item)
Inserts a new item at the end of the list.
|
void |
clear()
Clears all existing current items from the list, with the result being an empty list.
|
JsSVGTransform |
consolidate() |
JsSVGTransform |
createSVGTransformFromMatrix(SVGMatrix matrix) |
JsSVGTransform |
getItem(int index)
Returns the specified item from the list.
|
int |
getNumberOfItems() |
JsSVGTransform |
initialize(SVGTransform item)
Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
|
JsSVGTransform |
insertItemBefore(SVGTransform item,
int index)
Inserts a new item into the list at the specified position.
|
JsSVGTransform |
removeItem(int index)
Removes an existing item from the list.
|
JsSVGTransform |
replaceItem(SVGTransform item,
int index)
Replaces an existing item in the list with a new item.
|
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final int getNumberOfItems()
getNumberOfItems
in interface SVGTransformList
public final JsSVGTransform appendItem(SVGTransform item)
SVGTransformList
Inserts a new item at the end of the list. If newItem
is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.appendItem
in interface SVGTransformList
public final void clear()
SVGTransformList
Clears all existing current items from the list, with the result being an empty list.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.clear
in interface SVGTransformList
public final JsSVGTransform consolidate()
consolidate
in interface SVGTransformList
public final JsSVGTransform createSVGTransformFromMatrix(SVGMatrix matrix)
createSVGTransformFromMatrix
in interface SVGTransformList
public final JsSVGTransform getItem(int index)
SVGTransformList
Returns the specified item from the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. The first item is number 0.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.getItem
in interface SVGTransformList
public final JsSVGTransform initialize(SVGTransform item)
SVGTransformList
Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter. If the inserted item is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. The return value is the item inserted into the list.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.initialize
in interface SVGTransformList
public final JsSVGTransform insertItemBefore(SVGTransform item, int index)
SVGTransformList
Inserts a new item into the list at the specified position. The first item is number 0. If newItem
is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. If the item is already in this list, note that the index of the item to insert before is before the removal of the item. If the index
is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems
, then the new item is appended to the end of the list.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.insertItemBefore
in interface SVGTransformList
public final JsSVGTransform removeItem(int index)
SVGTransformList
Removes an existing item from the list.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.DOMException
with code INDEX_SIZE_ERR
is raised if the index number is greater than or equal to numberOfItems
.removeItem
in interface SVGTransformList
public final JsSVGTransform replaceItem(SVGTransform item, int index)
SVGTransformList
Replaces an existing item in the list with a new item. If newItem
is already in a list, it is removed from its previous list before it is inserted into this list. The inserted item is the item itself and not a copy. If the item is already in this list, note that the index of the item to replace is before the removal of the item.
Exceptions:
DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the list corresponds to a read only attribute or when the object itself is read only.DOMException
with code INDEX_SIZE_ERR
is raised if the index number is greater than or equal to numberOfItems
.replaceItem
in interface SVGTransformList
Copyright © 2016. All rights reserved.