org.apache.batik.dom.svg
Class SVGList

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGList

public class SVGList
extends java.lang.Object

This class is used to implement SVG lists.


Field Summary
protected  java.util.List list
          The list implementation.
 
Constructor Summary
SVGList()
           
 
Method Summary
 java.lang.Object appendItem(java.lang.Object item)
          Appends the given item to the end of the list.
 void clear()
          Clears the list.
 java.lang.Object getItem(int index)
          Returns the item at the given index.
 int getNumberOfItems()
          Returns the number of items in the list.
 java.lang.Object initialize(java.lang.Object item)
          Clears the list and adds the given item to the list.
 java.lang.Object insertItemBefore(java.lang.Object item, int index)
          Inserts an item in the list before the item at the given position.
 java.util.Iterator iterator()
          Returns an iterator over the list.
 java.lang.Object removeItem(int index)
          Removes the item at the given index.
 java.lang.Object replaceItem(java.lang.Object item, int index)
          Replaces the item at the given index with the given item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected java.util.List list
The list implementation.
Constructor Detail

SVGList

public SVGList()
Method Detail

getNumberOfItems

public int getNumberOfItems()
Returns the number of items in the list.

clear

public void clear()
Clears the list.

initialize

public java.lang.Object initialize(java.lang.Object item)
Clears the list and adds the given item to the list.

getItem

public java.lang.Object getItem(int index)
                         throws DOMException
Returns the item at the given index.

insertItemBefore

public java.lang.Object insertItemBefore(java.lang.Object item,
                                         int index)
Inserts an item in the list before the item at the given position.

replaceItem

public java.lang.Object replaceItem(java.lang.Object item,
                                    int index)
                             throws DOMException
Replaces the item at the given index with the given item.

removeItem

public java.lang.Object removeItem(int index)
                            throws DOMException
Removes the item at the given index.

appendItem

public java.lang.Object appendItem(java.lang.Object item)
Appends the given item to the end of the list.

iterator

public java.util.Iterator iterator()
Returns an iterator over the list.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.