|
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.annotation.AnnotationListBase
com.softwarefx.chartfx.server.annotation.AnnotationList
public class AnnotationList
Provides access to the AnnotationList object.
The Annotation list consists of all the individual annotation objects that you would like to include in your charting application. Once all the desired annotation objects have been added to the list, the annotation extension object may be added to the chart using the Extensions property.
The AnnotationList Class supports or supplies access to all the properties and methods used to create, modify and maintain the annotation list.
Constructor Summary | |
---|---|
AnnotationList()
|
|
AnnotationList(Annotations annotations)
|
Method Summary | ||
---|---|---|
boolean |
add(Object o)
Used to add an object to the end of an annotation group or to the entire annotation objects list. |
|
boolean |
addAll(Collection<? extends Object> c)
Adds all of the elements in the specified collection to the AnnotationList collection. |
|
void |
clear()
Removes all of the elements from this collection. |
|
boolean |
contains(Object o)
Determines whether an annotation list or group contains a specific element. |
|
boolean |
containsAll(Collection<?> c)
Returns true if the AnnotationList collection contains all of the elements in the specified collection. |
|
int |
getCurrentObjectIndex()
Get the index of the current object in the Annotation list. |
|
boolean |
isEmpty()
Returns true if this collection contains no elements. |
|
Iterator<Object> |
iterator()
Returns an iterator over the elements in this collection. |
|
boolean |
remove(Object o)
Removes the first occurrence of a specified annotation object from the selected collection. |
|
boolean |
removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the AnnotationList collection. |
|
boolean |
retainAll(Collection<?> c)
Retains only the elements in the AnnotationList collection that are contained in the specified collection. |
|
int |
size()
Returns the number of elements in this collection. |
|
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 com.softwarefx.chartfx.server.annotation.AnnotationListBase |
---|
add, contains, copyTo, get, hitTest, indexOf, insert, remove |
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 AnnotationList()
public AnnotationList(Annotations annotations)
Method Detail |
---|
public boolean add(Object o)
Used to add an object to the end of an annotation group or to the entire annotation objects list.
This method allows you to add annotation objects to the annotation list, SelectionList, annotation groups, etc.
Other supported members of the AnnotationListBase
Class
allow you AnnotationListBase.insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
and AnnotationListBase.remove(com.softwarefx.chartfx.server.annotation.AnnotationObject)
annotation objects from an annotation list or group.
Before you can add any annotation objects to the annotation list, you must first create the annotation list object. Once created you may begin adding individual annotation objects to the list.
add
in interface Collection<Object>
o
- AnnotationListBase.contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.remove(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
,
AnnotationList
public boolean addAll(Collection<? extends Object> c)
Adds all of the elements in the specified collection to the AnnotationList collection.
addAll
in interface Collection<Object>
c
- Elements to be inserted into this collection.public void clear()
Removes all of the elements from this collection.
clear
in interface Collection<Object>
public boolean contains(Object o)
Determines whether an annotation list or group contains a specific element.
This method will return True if the collection contains the specified object; otherwise, False.
contains
in interface Collection<Object>
o
- AnnotationListBase.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.remove(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
public boolean containsAll(Collection<?> c)
Returns true if the AnnotationList collection contains all of the elements in the specified collection.
containsAll
in interface Collection<Object>
c
- Collection to be checked for containment in this collection.public int getCurrentObjectIndex()
Get the index of the current object in the Annotation list.
Use the CurrentObjectIndex to get the zero-base index of the current object in the Annotation List.
public boolean isEmpty()
Returns true if this collection contains no elements.
isEmpty
in interface Collection<Object>
public Iterator<Object> iterator()
Returns an iterator over the elements in this collection.
iterator
in interface Iterable<Object>
iterator
in interface Collection<Object>
public boolean remove(Object o)
Removes the first occurrence of a specified annotation object from the selected collection.
The AnnotationListBase.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
method may be used to add annotation objects to a selected annotation list or group. You may also insert an object at a specified index value using the AnnotationListBase.insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
method.
The AnnotationListBase.contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
method will allow you to determine if a specific annotation object has been added to a group or list.
remove
in interface Collection<Object>
o
- AnnotationListBase.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
AnnotationListBase.insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
public boolean removeAll(Collection<?> c)
Removes all of the elements in the specified collection from the AnnotationList collection.
removeAll
in interface Collection<Object>
c
- Elements to be removed from this collection.public boolean retainAll(Collection<?> c)
Retains only the elements in the AnnotationList collection that are contained in the specified collection.
retainAll
in interface Collection<Object>
c
- Elements to be retained in this collection.public int size()
Returns the number of elements in this collection.
size
in interface Collection<Object>
public Object[] toArray()
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<Object>
public <T> T[] toArray(T[] a)
Returns an array containing all of the elements in this collection in proper sequence.
toArray
in interface Collection<Object>
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |