|
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.ConditionalAttributesCollection
public final class ConditionalAttributesCollection
Provides access to the ConditionalAttributesCollection object.
Derived from the DisplayBaseCollection, this class provides the developer with members to control and maintain the conditional attributes collection. Standard collection members are supported as well as a set of additional members. These class members are used to apply conditional attributes to the chart as well as overriding default behaviors to improve performance.
For more information, please view the individual member pages of this class.
| Constructor Summary | |
|---|---|
ConditionalAttributesCollection()
|
|
| Method Summary | |
|---|---|
boolean |
add(ConditionalAttributes element)
Appends the specified element to the ConditionalAttributesCollection collection. |
void |
add(int index,
ConditionalAttributes element)
Appends the specified element to the ConditionalAttributesCollection collection. |
void |
add(int index,
java.lang.Object element)
Appends the specified element to the ConditionalAttributesCollection collection. |
boolean |
add(java.lang.Object element)
Appends the specified element to the ConditionalAttributesCollection collection. |
boolean |
addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the ConditionalAttributesCollection collection. |
boolean |
addAll(int index,
java.util.Collection elements)
Adds all of the elements in the specified collection to the ConditionalAttributesCollection collection. |
void |
clear()
Removes all of the elements from this collection. |
boolean |
contains(ConditionalAttributes element)
Returns true if the ConditionalAttributesCollection contains the specified element. |
boolean |
contains(java.lang.Object element)
Returns true if the ConditionalAttributesCollection contains the specified element. |
boolean |
containsAll(java.util.Collection elements)
Returns true if the ConditionalAttributesCollection collection contains all of the elements in the specified collection. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in the ConditionalAttributesCollection . |
boolean |
equals(ConditionalAttributesCollection element)
Compares the specified object with this collection for equality. |
boolean |
equals(java.lang.Object 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 ConditionalAttributesCollection. |
ConditionalAttributes |
getItem(int n)
Gets and Sets the element at the specified position in the ConditionalAttributesCollection. |
int |
hashCode()
Returns the hash code value for this collection. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
int |
indexOf(ConditionalAttributes element)
Returns the index in the ConditionalAttributesCollection of the first occurrence of the specified element, or -1 if this list does not contain this element. |
int |
indexOf(java.lang.Object element)
Returns the index in the ConditionalAttributesCollection of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
boolean |
isUserLegend()
Gets the UserLegend. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this collection. |
int |
lastIndexOf(ConditionalAttributes element)
Returns the index in the ConditionalAttributesCollection of the last occurrence of the specified element, or -1 if this list does not contain this element. |
int |
lastIndexOf(java.lang.Object element)
Returns the index in the ConditionalAttributesCollection 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. |
void |
recalculate()
Used to instruct Chart FX to re-apply the configured conditional attributes to the chart. |
void |
refreshLegend()
Used to instruct Chart FX to re-apply the configured conditional attributes to the legends. |
boolean |
remove(ConditionalAttributes element)
Removes the specified element from the ConditionalAttributesCollection collection. |
java.lang.Object |
remove(int index)
Removes the specified element from the ConditionalAttributesCollection collection. |
boolean |
remove(java.lang.Object element)
Removes the specified element from the ConditionalAttributesCollection collection. |
boolean |
removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the ConditionalAttributesCollection collection. |
void |
resumeUpdate()
Resumes the automatic behavior of re-applying Conditional attributes when data is modified in the chart. |
boolean |
retainAll(java.util.Collection elements)
Retains only the elements in the ConditionalAttributesCollection collection that are contained in the specified collection. |
ConditionalAttributes |
set(int index,
ConditionalAttributes element)
Replaces the element at the specified position in the ConditionalAttributesCollection collection with the specified element. |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in the ConditionalAttributesCollection collection with the specified element. |
void |
setUserLegend(boolean value)
Gets or sets a value indicating whether conditional attributes should be applied to the UserLegend. |
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. |
void |
suspendUpdate()
Suspends the automatic behavior of re-applying Conditional attributes when data is modified in the chart. |
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 ConditionalAttributesCollection()
| Method Detail |
|---|
public boolean add(java.lang.Object element)
Appends the specified element to the ConditionalAttributesCollection collection.
add in interface java.util.Collectionadd in interface java.util.Listelement - The item to add to the ConditionalAttributesCollection collection.
public void add(int index,
java.lang.Object element)
Appends the specified element to the ConditionalAttributesCollection collection.
add in interface java.util.Listindex - The index of the item to add to the ConditionalAttributesCollection collection.element - The item to add to the ConditionalAttributesCollection collection.public boolean add(ConditionalAttributes element)
Appends the specified element to the ConditionalAttributesCollection collection.
element - The item to add to the ConditionalAttributesCollection collection.
public void add(int index,
ConditionalAttributes element)
Appends the specified element to the ConditionalAttributesCollection collection.
index - The index of the item to add to the ConditionalAttributesCollection collection.element - The item to add to the ConditionalAttributesCollection collection.public boolean addAll(java.util.Collection elements)
Adds all of the elements in the specified collection to the ConditionalAttributesCollection 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 ConditionalAttributesCollection collection.
addAll in interface java.util.Listindex - The index of the item to add to the ConditionalAttributesCollection 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.Collectionclear in interface java.util.Listclear in class DisplayBaseCollectionpublic boolean contains(java.lang.Object element)
Returns true if the ConditionalAttributesCollection 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(ConditionalAttributes element)
Returns true if the ConditionalAttributesCollection 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 ConditionalAttributesCollection 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 ConditionalAttributesCollection . 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(ConditionalAttributesCollection 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 ConditionalAttributesCollection.
get in interface java.util.Listindex - Index of element to return.public ConditionalAttributes getItem(int n)
Gets and Sets the element at the specified position in the ConditionalAttributesCollection.
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 DisplayBaseCollectionpublic int indexOf(java.lang.Object element)
Returns the index in the ConditionalAttributesCollection of the first occurrence of the specified element, or -1 if this list does not contain this element.
indexOf in interface java.util.ListindexOf in class DisplayBaseCollectionelement - Element to search for.public int indexOf(ConditionalAttributes element)
Returns the index in the ConditionalAttributesCollection of the first occurrence of the specified element, or -1 if this list does not contain this element.
element - Element to search for.public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Listpublic boolean isUserLegend()
Gets the UserLegend. For more detail see setUserLegend(boolean).
public 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 ConditionalAttributesCollection 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(ConditionalAttributes element)
Returns the index in the ConditionalAttributesCollection 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 void recalculate()
Used to instruct Chart FX to re-apply the configured conditional attributes to the chart.
When data values are modified, the configured conditional attributes are automatically applied to the chart. However, if the values of the Conditional Attributes themselves are modified, this method must be called to re-apply the attributes with new settings to the chart.
To improve performance, the refreshLegend() method has been implemented to allow devlopers to re-apply conditional attributes to the legends rather than the entire chart. This may be useful when no data is modified in a chart, only the labels or colors used in legends.
The suspendUpdate() and resumeUpdate() methods may be utilized to override the default behavior to re-apply Conditional Attributes when the chart's data array is modified.
refreshLegend(),
suspendUpdate(),
resumeUpdate()public void refreshLegend()
Used to instruct Chart FX to re-apply the configured conditional attributes to the legends.
When data values are modified, the configured conditional attributes are automatically applied to the chart. However, if the values of the Conditional Attributes themselves are modified, this method must be called to re-apply the attributes with new settings to the legends.
To improve performance, the RefreshLegend method has been implemented to allow devlopers to re-apply conditional attributes to the legends rather than the entire chart (recalculate()). This may be useful when no data is modified in a chart, only the labels or colors used in legends.
The suspendUpdate() and resumeUpdate() methods may be utilized to override the default behavior to re-apply Conditional Attributes when the chart's data array is modified.
recalculate(),
resumeUpdate(),
suspendUpdate()public boolean remove(java.lang.Object element)
Removes the specified element from the ConditionalAttributesCollection collection.
remove in interface java.util.Collectionremove in interface java.util.Listelement - The item to remove from the ConditionalAttributesCollection collection.public java.lang.Object remove(int index)
Removes the specified element from the ConditionalAttributesCollection collection.
remove in interface java.util.Listindex - The index of the item to remove from the ConditionalAttributesCollection collection.public boolean remove(ConditionalAttributes element)
Removes the specified element from the ConditionalAttributesCollection collection.
element - The item to remove from the ConditionalAttributesCollection collection.public boolean removeAll(java.util.Collection elements)
Removes all of the elements in the specified collection from the ConditionalAttributesCollection collection.
removeAll in interface java.util.CollectionremoveAll in interface java.util.Listelements - Elements to be removed from this collection.public void resumeUpdate()
Resumes the automatic behavior of re-applying Conditional attributes when data is modified in the chart.
When the chart's data array is modified (chart values change), the automatic behavior of configured ConditionalAttributes are to be re-applied to the chart. Using the suspendUpdate() method, developers can disable this default behavior. Using the ResumeUpdate method, developers may resume automatic updates by Chart FX.
If you plan on modifiying a large number of data values in a chart, you may wish to call the suspendUpdate()
method until this processing is complete. This allows for improved performance.
Developers may always force this update by calling the recalculate() method.
suspendUpdate(),
recalculate()public boolean retainAll(java.util.Collection elements)
Retains only the elements in the ConditionalAttributesCollection 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 ConditionalAttributesCollection collection with the specified element.
set in interface java.util.Listindex - The index of the item to add to the ConditionalAttributesCollection collection.element - The item to add to the ConditionalAttributesCollection collection
public ConditionalAttributes set(int index,
ConditionalAttributes element)
Replaces the element at the specified position in the ConditionalAttributesCollection collection with the specified element.
index - The index of the item to add to the ConditionalAttributesCollection collection.element - The item to add to the ConditionalAttributesCollection collectionpublic void setUserLegend(boolean value)
Gets or sets a value indicating whether conditional attributes should be applied to the UserLegend.
When this property is set to false, conditional attributes will not be applied to the UserLegendBox object.
The refreshLegend() method is used to instruct Chart FX to re-apply the configured conditional attributes to the legends only. The recalculate() method may be used to re-apply conditional attributes to the entire chart.
recalculate(),
refreshLegend()public 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 void suspendUpdate()
Suspends the automatic behavior of re-applying Conditional attributes when data is modified in the chart.
When the chart's data array is modified (chart values change), the automatic behavior of configured ConditionalAttributes are to be re-applied to the chart. Using the SuspendUpdate method, developers can disable this default behavior. Using the resumeUpdate() method, developers may resume automatic updates by Chart FX.
If you plan on modifiying a large number of data values in a chart, you may wish to call the SuspendUpdate
method until this processing is complete. This allows for improved performance.
Developers may always force this update by calling the recalculate() method.
recalculate(),
resumeUpdate()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 | |||||||