|
Chart FX for Java 6.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSoftwareFX.ChartFX.DisplayBaseCollection
SoftwareFX.ChartFX.PaneCollection
public final class PaneCollection
Provides access to the PaneCollection object.
The PaneCollection class is comprised of all the chart pane objects created in the chart. The supported members of this class allow you some control over the collection of items as well as access to specific panes.
| Constructor Summary | |
|---|---|
PaneCollection()
|
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object element)
Appends the specified element to the PaneCollection collection. |
void |
add(int index,
Pane element)
Appends the specified element to the PaneCollection collection. |
boolean |
add(java.lang.Object element)
Appends the specified element to the PaneCollection collection. |
boolean |
add(Pane element)
Appends the specified element to the PaneCollection collection. |
boolean |
addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the PaneCollection collection. |
boolean |
addAll(int index,
java.util.Collection elements)
Adds all of the elements in the specified collection to the PaneCollection collection. |
void |
clear()
Removes all panes from the collection. |
boolean |
contains(java.lang.Object element)
Returns true if the PaneCollection contains the specified element. |
boolean |
contains(Pane element)
Returns true if the PaneCollection contains the specified element. |
boolean |
containsAll(java.util.Collection elements)
Returns true if the PaneCollection collection contains all of the elements in the specified collection. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in the PaneCollection . |
boolean |
equals(java.lang.Object element)
Compares the specified object with this collection for equality. |
boolean |
equals(PaneCollection 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 PaneCollection. |
Pane |
getItem(int n)
Allows you to select a specific item in the PaneCollection list as well as access the supported methods of the PaneCollection class. |
int |
hashCode()
Returns the hash code value for this collection. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
int |
hitTest(int x,
int y)
Returns the index of the pane that corresponds to the x,y coordinate. |
int |
indexOf(java.lang.Object element)
Returns the zero-based index of a specific item in the PaneCollection list. |
int |
indexOf(Pane element)
Returns the zero-based index of a specific item in the PaneCollection 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 PaneCollection of the last occurrence of the specified element, or -1 if this list does not contain this element. |
int |
lastIndexOf(Pane element)
Returns the index in the PaneCollection 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 specified element from the PaneCollection collection. |
boolean |
remove(java.lang.Object element)
Removes the specified element from the PaneCollection collection. |
boolean |
remove(Pane element)
Removes the specified element from the PaneCollection collection. |
boolean |
removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the PaneCollection collection. |
boolean |
retainAll(java.util.Collection elements)
Retains only the elements in the PaneCollection 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 PaneCollection collection with the specified element. |
Pane |
set(int index,
Pane element)
Replaces the element at the specified position in the PaneCollection 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 SoftwareFX.ChartFX.DisplayBaseCollection |
|---|
removeAt |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaneCollection()
| Method Detail |
|---|
public boolean add(java.lang.Object element)
Appends the specified element to the PaneCollection collection.
add in interface java.util.Collectionadd in interface java.util.Listelement - The item to add to the PaneCollection collection.
public void add(int index,
java.lang.Object element)
Appends the specified element to the PaneCollection collection.
add in interface java.util.Listindex - The index of the item to add to the PaneCollection collection.element - The item to add to the PaneCollection collection.public boolean add(Pane element)
Appends the specified element to the PaneCollection collection.
element - The item to add to the PaneCollection collection.
public void add(int index,
Pane element)
Appends the specified element to the PaneCollection collection.
index - The index of the item to add to the PaneCollection collection.element - The item to add to the PaneCollection collection.public boolean addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the PaneCollection collection.
addAll in interface java.util.CollectionaddAll in interface java.util.Listelements - 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 PaneCollection collection.
addAll in interface java.util.Listindex - The index of the item to add to the PaneCollection collection.elements - Elements to be inserted into this collection.public void clear()
Removes all panes from the collection.
You can use the Clear method to remove the entire collection of panes from a parent chart.
clear in interface java.util.Collectionclear in interface java.util.Listclear in class DisplayBaseCollectiongetItem(int),
hitTest(int, int),
indexOf(java.lang.Object)public boolean contains(java.lang.Object element)
Returns true if the PaneCollection contains the specified element.
contains in interface java.util.Collectioncontains in interface java.util.Listelement - Element whose presence in this collection is to be tested.public boolean contains(Pane element)
Returns true if the PaneCollection contains the specified element.
element - Element whose presence in this collection is to be tested.public boolean containsAll(java.util.Collection elements)
Returns true if the PaneCollection collection contains all of the elements in the specified collection.
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Listelements - Collection to be checked for containment in this collection.public java.util.Enumeration elements()
Returns an enumeration of the values in the PaneCollection . Use the Enumeration methods on the returned object to fetch the elements sequentially.
elements in class DisplayBaseCollectionpublic boolean equals(java.lang.Object element)
Compares the specified object with this collection for equality.
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.lang.Objectelement - Object to be compared for equality with this collection.public boolean equals(PaneCollection 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 PaneCollection.
get in interface java.util.Listindex - Index of element to return.public Pane getItem(int n)
Allows you to select a specific item in the PaneCollection list as well as access the supported methods of the PaneCollection class.
The Item property is used to select an specific item in collections. Using VB, you can use this property as follows:
Chart.Panes.Item(0).InsideColor = Color.Red
Using C#, this property is only available by using an index on the collection (Panes):
Chart.Panes[0].InsideColor = Color.Red;
The Item property is used to select an specific item in collections, for example:
chart1.getPanes().getItem(0).setInsideColor(java.awt.Color.RED);
public int hashCode()
Returns the hash code value for this collection.
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.lang.Objectpublic boolean hasMoreElements()
Tests if this enumeration contains more elements.
hasMoreElements in interface java.util.EnumerationhasMoreElements in class DisplayBaseCollection
public int hitTest(int x,
int y)
Returns the index of the pane that corresponds to the x,y coordinate.
If no pane is hit based on the configured coordinates a value of -1 is returned.
The ChartCore.getPanes() property is used to obtain the PaneCollection.
x - X pixel coordinate.y - Y pixel coordinate.ChartCore.getPanes(),
Chartpublic int indexOf(java.lang.Object element)
Returns the zero-based index of a specific item in the PaneCollection list.
The Contains method allows you to obtain a Boolean specifying whether a selected item exists in the PaneCollection list.
indexOf in interface java.util.ListindexOf in class DisplayBaseCollectionelement - getItem(int),
clear(),
hitTest(int, int)public int indexOf(Pane element)
Returns the zero-based index of a specific item in the PaneCollection list.
The Contains method allows you to obtain a Boolean specifying whether a selected item exists in the PaneCollection list.
element - getItem(int),
clear(),
hitTest(int, int)public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Listpublic java.util.Iterator iterator()
Returns an iterator over the elements in this collection.
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listpublic int lastIndexOf(java.lang.Object element)
Returns the index in the PaneCollection of the last occurrence of the specified element, or -1 if this list does not contain this element.
lastIndexOf in interface java.util.Listelement - Element to search for.public int lastIndexOf(Pane element)
Returns the index in the PaneCollection 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.Listpublic java.util.ListIterator listIterator(int index)
Returns a list iterator of the elements in this collection.
listIterator in interface java.util.Listindex - 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.EnumerationnextElement in class DisplayBaseCollectionpublic boolean remove(java.lang.Object element)
Removes the specified element from the PaneCollection collection.
remove in interface java.util.Collectionremove in interface java.util.Listelement - The item to remove from the PaneCollection collection.public java.lang.Object remove(int index)
Removes the specified element from the PaneCollection collection.
remove in interface java.util.Listindex - The index of the item to remove from the PaneCollection collection.public boolean remove(Pane element)
Removes the specified element from the PaneCollection collection.
element - The item to remove from the PaneCollection collection.public boolean removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the PaneCollection collection.
removeAll in interface java.util.CollectionremoveAll in interface java.util.Listelements - Elements to be removed from this collection.public boolean retainAll(java.util.Collection elements)
Retains only the elements in the PaneCollection collection that are contained in the specified collection.
retainAll in interface java.util.CollectionretainAll in interface java.util.Listelements - 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 PaneCollection collection with the specified element.
set in interface java.util.Listindex - The index of the item to add to the PaneCollection collection.element - The item to add to the PaneCollection collection
public Pane set(int index,
Pane element)
Replaces the element at the specified position in the PaneCollection collection with the specified element.
index - The index of the item to add to the PaneCollection collection.element - The item to add to the PaneCollection collectionpublic int size()
Returns the number of elements in this collection.
size in interface java.util.Collectionsize in interface java.util.Listsize in class DisplayBaseCollection
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.ListfromIndex - 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.CollectiontoArray in interface java.util.Listpublic 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.CollectiontoArray in interface java.util.ListtoArray in class DisplayBaseCollection
|
http://www.softwarefx.com | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||