|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.UserLegendBoxItemCollection
public final class UserLegendBoxItemCollection
Provides access to the UserLegendBoxItemCollection object.
The UserLegendBoxItemCollection Class allows you as the developer to control the UserLegendBoxItem list by exposing members such as Item, Add, Contains, CopyTo, IndexOf, Insert and Remove. It is recommended to create items using the following method rather than creating a new UserLegendBoxItem objects and adding them using the Add method, however, all other members prove very useful when administering this collection:
UserLegendBoxItem usrLegItem = Chart1.getUserLegendBoxObj().getItem(0);
Once you have a list generated, the members of this Class allow you to control the collection very easily:
Chart1.getUserLegendBoxObj().getItem().clear();
Constructor Summary | |
---|---|
UserLegendBoxItemCollection()
|
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
Adds an item to the UserLegendBoxItemCollection list. |
void |
add(int index,
UserLegendBoxItem element)
Adds an item to the UserLegendBoxItemCollection list. |
boolean |
add(java.lang.Object element)
Adds an item to the UserLegendBoxItemCollection list. |
boolean |
add(UserLegendBoxItem element)
Adds an item to the UserLegendBoxItemCollection list. |
boolean |
addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the UserLegendBoxItemCollection collection. |
boolean |
addAll(int index,
java.util.Collection elements)
Adds all of the elements in the specified collection to the UserLegendBoxItemCollection collection. |
void |
clear()
Removes all of the elements from this collection. |
boolean |
contains(java.lang.Object element)
Returns a Boolean specifying if the referenced item is included in the UserLegendBoxItemCollection list. |
boolean |
contains(UserLegendBoxItem element)
Returns a Boolean specifying if the referenced item is included in the UserLegendBoxItemCollection list. |
boolean |
containsAll(java.util.Collection elements)
Returns true if the UserLegendBoxItemCollection collection contains all of the elements in the specified collection. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in the UserLegendBoxItemCollection . |
boolean |
equals(java.lang.Object element)
Compares the specified object with this collection for equality. |
boolean |
equals(UserLegendBoxItemCollection element)
Compares the specified object with this collection for equality. |
java.lang.Object |
get(int index)
Returns the element at the specified position in the UserLegendBoxItemCollection. |
UserLegendBoxItem |
getItem(int i)
Allows you to select a specific item in the UserLegendBoxItemCollection list as well as access the supported methods of the UserLegendBoxItemCollection class. |
int |
hashCode()
Returns the hash code value for this collection. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
int |
indexOf(java.lang.Object element)
Returns the zero-based index of a specific item in the UserLegendBoxItemCollection list. |
int |
indexOf(UserLegendBoxItem element)
Returns the zero-based index of a specific item in the UserLegendBoxItemCollection list. |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection. |
int |
lastIndexOf(java.lang.Object element)
Returns the index in the UserLegendBoxItemCollection of the last occurrence of the specified element, or -1 if this list does not contain this element. |
int |
lastIndexOf(UserLegendBoxItem element)
Returns the index in the UserLegendBoxItemCollection of the last occurrence of the specified element, or -1 if this list does not contain this element. |
java.util.ListIterator |
listIterator()
Returns a list iterator of the elements in this collection. |
java.util.ListIterator |
listIterator(int index)
Returns a list iterator of the elements in this collection. |
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
java.lang.Object |
remove(int index)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list. |
boolean |
remove(java.lang.Object element)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list. |
boolean |
remove(UserLegendBoxItem element)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list. |
boolean |
removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the UserLegendBoxItemCollection collection. |
boolean |
retainAll(java.util.Collection elements)
Retains only the elements in the UserLegendBoxItemCollection collection that are contained in the specified collection. |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in the UserLegendBoxItemCollection collection with the specified element. |
UserLegendBoxItem |
set(int index,
UserLegendBoxItem element)
Replaces the element at the specified position in the UserLegendBoxItemCollection collection with the specified element. |
int |
size()
Returns the number of elements in this collection. |
java.util.List |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection in proper sequence. |
java.lang.Object[] |
toArray(java.lang.Object[] obj)
Returns an array containing all of the elements in this collection in proper sequence. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserLegendBoxItemCollection()
Method Detail |
---|
public boolean add(java.lang.Object element)
Adds an item to the UserLegendBoxItemCollection list.
It is not recommended to create a new UserLegendBoxItem due to the fact Chart FX will handle this for you, however this method will allow you to add existing objects into the list again. Here is the recommended way to access a UserLegendBoxItem:
add
in interface java.util.Collection
add
in interface java.util.List
element
- getItem(int)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public void add(int index, java.lang.Object element)
Adds an item to the UserLegendBoxItemCollection list.
It is not recommended to create a new UserLegendBoxItem due to the fact Chart FX will handle this for you, however this method will allow you to add existing objects into the list again. Here is the recommended way to access a UserLegendBoxItem:
add
in interface java.util.List
index
- element
- getItem(int)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public boolean add(UserLegendBoxItem element)
Adds an item to the UserLegendBoxItemCollection list.
It is not recommended to create a new UserLegendBoxItem due to the fact Chart FX will handle this for you, however this method will allow you to add existing objects into the list again. Here is the recommended way to access a UserLegendBoxItem:
element
- getItem(int)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public void add(int index, UserLegendBoxItem element)
Adds an item to the UserLegendBoxItemCollection list.
It is not recommended to create a new UserLegendBoxItem due to the fact Chart FX will handle this for you, however this method will allow you to add existing objects into the list again. Here is the recommended way to access a UserLegendBoxItem:
index
- element
- getItem(int)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public boolean addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the UserLegendBoxItemCollection collection.
addAll
in interface java.util.Collection
addAll
in interface java.util.List
elements
- Elements to be inserted into this collection.public boolean addAll(int index, java.util.Collection elements)
Adds all of the elements in the specified collection to the UserLegendBoxItemCollection collection.
addAll
in interface java.util.List
index
- The index of the item to add to the UserLegendBoxItemCollection collection.elements
- Elements to be inserted into this collection.public void clear()
Removes all of the elements from this collection.
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean contains(java.lang.Object element)
Returns a Boolean specifying if the referenced item is included in the UserLegendBoxItemCollection list.
This method is useful if you want to find out if a selected item exists in the UserLegendBoxItemCollection list.
contains
in interface java.util.Collection
contains
in interface java.util.List
element
- getItem(int)
,
add(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public boolean contains(UserLegendBoxItem element)
Returns a Boolean specifying if the referenced item is included in the UserLegendBoxItemCollection list.
This method is useful if you want to find out if a selected item exists in the UserLegendBoxItemCollection list.
element
- getItem(int)
,
add(java.lang.Object)
,
indexOf(java.lang.Object)
,
remove(java.lang.Object)
public boolean containsAll(java.util.Collection elements)
Returns true if the UserLegendBoxItemCollection collection contains all of the elements in the specified collection.
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
elements
- Collection to be checked for containment in this collection.public java.util.Enumeration elements()
Returns an enumeration of the values in the UserLegendBoxItemCollection . Use the Enumeration methods on the returned object to fetch the elements sequentially.
public boolean equals(java.lang.Object element)
Compares the specified object with this collection for equality.
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.lang.Object
element
- Object to be compared for equality with this collection.public boolean equals(UserLegendBoxItemCollection element)
Compares the specified object with this collection for equality.
element
- Object to be compared for equality with this collection.public java.lang.Object get(int index)
Returns the element at the specified position in the UserLegendBoxItemCollection.
get
in interface java.util.List
index
- Index of element to return.public UserLegendBoxItem getItem(int i)
Allows you to select a specific item in the UserLegendBoxItemCollection list as well as access the supported methods of the UserLegendBoxItemCollection class.
This property should be used to create items for the UserLegendBox as follows:
It may also be used to access the supported methods of the UserLegendBoxItemCollection class:
public int hashCode()
Returns the hash code value for this collection.
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.lang.Object
public boolean hasMoreElements()
Tests if this enumeration contains more elements.
hasMoreElements
in interface java.util.Enumeration
public int indexOf(java.lang.Object element)
Returns the zero-based index of a specific item in the UserLegendBoxItemCollection list.
The Contains method allows you to obtain a Boolean specifying whether a selected item exists in the UserLegendBoxItemCollection list.
indexOf
in interface java.util.List
element
- getItem(int)
,
add(java.lang.Object)
,
contains(java.lang.Object)
,
remove(java.lang.Object)
public int indexOf(UserLegendBoxItem element)
Returns the zero-based index of a specific item in the UserLegendBoxItemCollection list.
The Contains method allows you to obtain a Boolean specifying whether a selected item exists in the UserLegendBoxItemCollection list.
element
- getItem(int)
,
add(java.lang.Object)
,
contains(java.lang.Object)
,
remove(java.lang.Object)
public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public java.util.Iterator iterator()
Returns an iterator over the elements in this collection.
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public int lastIndexOf(java.lang.Object element)
Returns the index in the UserLegendBoxItemCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.
lastIndexOf
in interface java.util.List
element
- Element to search for.public int lastIndexOf(UserLegendBoxItem element)
Returns the index in the UserLegendBoxItemCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.
element
- Element to search for.public java.util.ListIterator listIterator()
Returns a list iterator of the elements in this collection.
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
Returns a list iterator of the elements in this collection.
listIterator
in interface java.util.List
index
- public java.lang.Object nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
nextElement
in interface java.util.Enumeration
public boolean remove(java.lang.Object element)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list.
The Add and Insert methods may be used to populate the UserLegendBoxItemCollection list.
remove
in interface java.util.Collection
remove
in interface java.util.List
element
- getItem(int)
,
add(java.lang.Object)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
public java.lang.Object remove(int index)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list.
The Add and Insert methods may be used to populate the UserLegendBoxItemCollection list.
remove
in interface java.util.List
index
- getItem(int)
,
add(java.lang.Object)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
public boolean remove(UserLegendBoxItem element)
Removes the first occurrence of a specific item from the UserLegendBoxItemCollection list.
The Add and Insert methods may be used to populate the UserLegendBoxItemCollection list.
element
- getItem(int)
,
add(java.lang.Object)
,
contains(java.lang.Object)
,
indexOf(java.lang.Object)
public boolean removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the UserLegendBoxItemCollection collection.
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
elements
- Elements to be removed from this collection.public boolean retainAll(java.util.Collection elements)
Retains only the elements in the UserLegendBoxItemCollection collection that are contained in the specified collection.
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
elements
- Elements to be retained in this collection.public java.lang.Object set(int index, java.lang.Object element)
Replaces the element at the specified position in the UserLegendBoxItemCollection collection with the specified element.
set
in interface java.util.List
index
- The index of the item to add to the UserLegendBoxItemCollection collection.element
- The item to add to the UserLegendBoxItemCollection collectionpublic UserLegendBoxItem set(int index, UserLegendBoxItem element)
Replaces the element at the specified position in the UserLegendBoxItemCollection collection with the specified element.
index
- The index of the item to add to the UserLegendBoxItemCollection collection.element
- The item to add to the UserLegendBoxItemCollection collectionpublic int size()
Returns the number of elements in this collection.
size
in interface java.util.Collection
size
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
subList
in interface java.util.List
fromIndex
- Low endpoint (inclusive) of the subList.toIndex
- High endpoint (exclusive) of the subList.public java.lang.Object[] toArray()
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] obj)
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface java.util.Collection
toArray
in interface java.util.List
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |