|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.graph.GraphElementList
A list of GraphElement.
| Constructor Summary | |
GraphElementList()
Creates a new, empty list. |
|
GraphElementList(GraphElementList list)
Creates a new list from a list of GraphElement elements. |
|
| Method Summary | |
boolean |
add(GraphElement elem)
Appends a graph element to the end of this list. |
void |
add(int index,
GraphElement elem)
Inserts a graph element at a position in this list. |
void |
addAll(GraphElement list)
Appends all graph elements in a list to the end of this list. |
void |
addFirst(GraphElement elem)
Inserts a graph element at the beginning of this list. |
void |
addLast(GraphElement elem)
Appends a graph element to the end of this list. |
void |
clear()
Removes all graph elements from this list. |
boolean |
contains(GraphElement elem)
Tests if this list contains a graph element. |
boolean |
containsAll(GraphElement list)
Tests if this list contains all graph elements of a list. |
boolean |
equals(GraphElementList list)
Tests if this list is equals to a given list. |
GraphElement |
get(int index)
Returns a graph element at the position in this list. |
GraphElement |
getFirst()
Returns the first graph element in this list. |
GraphElement |
getLast()
Returns the last graph element in this list. |
boolean |
isEmpty()
Tests if this list contains no graph element. |
java.util.Iterator |
iterator()
Returns an iterator of this list in proper sequence. |
protected void |
print()
Displays information about this list. |
boolean |
remove(GraphElement elem)
Removes a graph element from this list. |
GraphElement |
remove(int index)
Removes a graph element at a position in this list. |
void |
removeAll(GraphElementList list)
Removes all graph elements in a list from this list. |
GraphElement |
removeFirst()
Removes the first graph element from this list. |
GraphElement |
removeLast()
Removes the last graph element from this list. |
boolean |
retainAll(GraphElementList list)
Retains only graph elements in this list that are contained in a list. |
int |
size()
Returns the number of graph elements in this list. |
GraphElement[] |
toArray()
Returns an array containing all graph elements in this list in proper sequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GraphElementList()
public GraphElementList(GraphElementList list)
GraphElement elements.
list - A list of graph elements.| Method Detail |
public void clear()
public boolean add(GraphElement elem)
elem - A graph element to be appended.
true if this list changed as a result of the call.
public void add(int index,
GraphElement elem)
index - A position where a graph element is inserted.elem - A graph element to be inserted.public void addAll(GraphElement list)
list - A list of graph elements to be appended.public boolean remove(GraphElement elem)
elem - A graph element to be removed.
true if this list changed as a result of the call.public void removeAll(GraphElementList list)
list - A list of graph elements to be removed.public GraphElement remove(int index)
index - A position where a wrapper to be removed.
null if there is no removed element.public boolean retainAll(GraphElementList list)
list - A list of graph elements to be retained.
true if this list changed as a result of the call.public boolean contains(GraphElement elem)
elem - A graph element to be tested.
true if the graph element is present, otherwise false.public boolean containsAll(GraphElement list)
list - A list of graph elements to be tested.
true if this list contains all of the graph elements of the list, otherwise false.public GraphElement get(int index)
index - The position where a graph element is obtained.
null if there is no graph element found.public GraphElement getFirst()
null if there is no graph element in this list.public GraphElement getLast()
null if there is no graph element in this list.public void addFirst(GraphElement elem)
elem - A graph element to be inserted.public void addLast(GraphElement elem)
public GraphElement removeFirst()
null if no element was removed.public GraphElement removeLast()
null if no element was removed.public boolean isEmpty()
true if this list contains no graph element, otherwise false.public int size()
public java.util.Iterator iterator()
public boolean equals(GraphElementList list)
list - A list to be tested.
true if both the lists are equal, otherwise false.public GraphElement[] toArray()
protected void print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||