|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.LabelAwareCollection
com.softwarefx.chartfx.server.PointAttributesAwareCollection
com.softwarefx.chartfx.server.ConditionalAttributesCollection
public class ConditionalAttributesCollection
Provides access to the ConditionalAttributesCollection object.
Charts may support an unlimited ConditionalAttributes objects. The ConditionalAttributesCollection is a collection of all the ConditionalAttribute items for a chart.
Constructor Summary | |
---|---|
ConditionalAttributesCollection()
|
Method Summary | ||
---|---|---|
boolean |
add(ConditionalAttributes o)
Appends the specified element to the ConditionalAttributesCollection collection. |
|
boolean |
addAll(Collection<? extends ConditionalAttributes> c)
Adds all of the elements in the specified collection to the ConditionalAttributesCollection collection. |
|
void |
addRange(ConditionalAttributes[] items)
Adds an array of objects to the ConditionalAttributesCollection collection. |
|
void |
clear()
Removes all of the elements from this collection. |
|
boolean |
contains(Object o)
Returns true if the ConditionalAttributesCollection contains the specified element. |
|
boolean |
containsAll(Collection<?> c)
Returns true if the ConditionalAttributesCollection collection contains all of the elements in the specified collection. |
|
void |
copyTo(ConditionalAttributes[] items,
int index)
Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
|
ConditionalAttributes |
get(int index)
Returns the element at the specified position in the ConditionalAttributesCollection. |
|
void |
insert(int index,
ConditionalAttributes item)
Inserts an element into the ArrayList at the specified index. |
|
boolean |
isEmpty()
Returns true if this collection contains no elements. |
|
boolean |
isShowInLegend()
Gets the ShowInLegend. |
|
Iterator<ConditionalAttributes> |
iterator()
Returns an iterator over the elements in this collection. |
|
void |
recalculate()
Reapplies all the conditional attributes for the current chart. |
|
boolean |
remove(Object o)
Removes the specified element from the ConditionalAttributesCollection collection. |
|
boolean |
removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the ConditionalAttributesCollection collection. |
|
void |
removeAt(int index)
Removes the element in the specified position from the ConditionalAttributesCollection collection. |
|
void |
resumeUpdate()
Resumes the automatic behavior of re-applying Conditional attributes when data is modified in the chart. |
|
boolean |
retainAll(Collection<?> c)
Retains only the elements in the ConditionalAttributesCollection collection that are contained in the specified collection. |
|
void |
setShowInLegend(boolean value)
Sets a value indicating whether or not to show ConditionaAttributes in the legend. |
|
int |
size()
Returns the number of elements in this collection. |
|
void |
suspendUpdate()
Suspends the automatic behavior of re-applying Conditional attributes when data is modified in the chart. |
|
Object[] |
toArray()
Returns an array containing all of the elements in this collection in proper sequence. |
|
|
toArray(T[] a)
Returns an array containing all of the elements in this collection in proper sequence. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public ConditionalAttributesCollection()
Method Detail |
---|
public boolean add(ConditionalAttributes o)
Appends the specified element to the ConditionalAttributesCollection collection.
add
in interface Collection<ConditionalAttributes>
o
- The item to add to the ConditionalAttributesCollection collection.public boolean addAll(Collection<? extends ConditionalAttributes> c)
Adds all of the elements in the specified collection to the ConditionalAttributesCollection collection.
addAll
in interface Collection<ConditionalAttributes>
c
- Elements to be inserted into this collection.public void addRange(ConditionalAttributes[] items)
Adds an array of objects to the ConditionalAttributesCollection collection.
items
- An array of objects to add to the collection.public void clear()
Removes all of the elements from this collection.
clear
in interface Collection<ConditionalAttributes>
clear
in class LabelAwareCollection
public boolean contains(Object o)
Returns true if the ConditionalAttributesCollection contains the specified element.
contains
in interface Collection<ConditionalAttributes>
o
- Element whose presence in this collection is to be tested.public boolean containsAll(Collection<?> c)
Returns true if the ConditionalAttributesCollection collection contains all of the elements in the specified collection.
containsAll
in interface Collection<ConditionalAttributes>
c
- Collection to be checked for containment in this collection.public void copyTo(ConditionalAttributes[] items, int index)
Copies the entire Collection to a compatible one-dimensional Array, starting at the specified index of the target array.
items
- The one-dimensional Array that is the destination of the elements copied from ConditionalAttributesCollection. The Array must have zero-based indexing.index
- The zero-based index in array at which copying begins.public ConditionalAttributes get(int index)
Returns the element at the specified position in the ConditionalAttributesCollection.
index
- Index of element to return.public void insert(int index, ConditionalAttributes item)
Inserts an element into the ArrayList at the specified index.
index
- The zero-based index at which position should be inserted.item
- The item to insert.public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty
in interface Collection<ConditionalAttributes>
public boolean isShowInLegend()
Gets the ShowInLegend. For more detail see setShowInLegend(boolean)
.
public Iterator<ConditionalAttributes> iterator()
Returns an iterator over the elements in this collection.
iterator
in interface Iterable<ConditionalAttributes>
iterator
in interface Collection<ConditionalAttributes>
public void recalculate()
Reapplies all the conditional attributes for the current 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.
suspendUpdate()
,
resumeUpdate()
,
ConditionalAttributes
public boolean remove(Object o)
Removes the specified element from the ConditionalAttributesCollection collection.
remove
in interface Collection<ConditionalAttributes>
o
- The item to remove from the ConditionalAttributesCollection collection.public boolean removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the ConditionalAttributesCollection collection.
removeAll
in interface Collection<ConditionalAttributes>
c
- Elements to be removed from this collection.public void removeAt(int index)
Removes the element in the specified position from the ConditionalAttributesCollection collection.
removeAt
in class LabelAwareCollection
index
- The index of the item to remove from the ConditionalAttributesCollection 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(Collection<?> c)
Retains only the elements in the ConditionalAttributesCollection collection that are contained in the specified collection.
retainAll
in interface Collection<ConditionalAttributes>
c
- Elements to be retained in this collection.public void setShowInLegend(boolean value)
Sets a value indicating whether or not to show ConditionaAttributes in the legend.
The Chart.getConditionalAttributes()
property of the Chart
object is used to access the ConditionalAttributesCollection object of a chart.
Chart.getConditionalAttributes()
,
Chart
public int size()
Returns the number of elements in this collection.
size
in interface Collection<ConditionalAttributes>
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 Object[] toArray()
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<ConditionalAttributes>
public <T> T[] toArray(T[] a)
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<ConditionalAttributes>
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |