|
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
public abstract class AnnotationListBase
Provides access to the AnnotationListBase object.
The AnnotationListBase Class is the base Class for the annotation list object. The supported members of this Class are inherited by the AnnotationList Class and should be accessed through the List property of Annotations Class .
To access the item property of this class:
com.softwarefx.chartfx.server.annotation.Annotations annot = new com.softwarefx.chartfx.server.annotation.Annotations();
chart1.getExtensions().add(annot);
annot.getList().get(0).getBorder().setColor(java.awt.Color.yellow);
Constructor Summary | |
---|---|
AnnotationListBase()
|
Method Summary | |
---|---|
void |
add(AnnotationObject annObj)
Used to add an object to the end of an annotation group or to the entire annotation objects list. |
boolean |
contains(AnnotationObject annObj)
Determines whether an annotation list or group contains a specific element. |
void |
copyTo(AnnotationObject[] array,
int index)
Copies the elements of this collection into the specified array. |
AnnotationObject |
get(int n)
Returns the element at the specified position in the AnnotationListBase. |
AnnotationObject |
hitTest(com.softwarefx.chartfx.server.annotation.AnnotationListBase.HitTest_Point_Enum_r _p_)
Allows you to simulate a mouse click in a particular x,y position in the chart and returns a flag specifying the hit type. |
int |
indexOf(AnnotationObject annObject)
Returns the zero based index of a specific item in a list. |
void |
insert(int index,
AnnotationObject annObj)
Inserts an element into the selected annotation collection at the specified index. |
void |
remove(AnnotationObject annObj)
Removes the first occurrence of a specified annotation object from the selected collection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationListBase()
Method Detail |
---|
public void add(AnnotationObject annObj)
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 insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
and 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.
annObj
- Annotation object to add.contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
remove(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
,
AnnotationList
public boolean contains(AnnotationObject annObj)
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.
annObj
- The annotation object to locate in the Collection.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
remove(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
public void copyTo(AnnotationObject[] array, int index)
Copies the elements of this collection into the specified array.
This method allows you to copy a collection into an array object.
The IndexOf method allows you to determine the index of a specific item in the list.
array
- The array to copy data to.index
- The count of elements to copy.indexOf(com.softwarefx.chartfx.server.annotation.AnnotationObject)
public AnnotationObject get(int n)
Returns the element at the specified position in the AnnotationListBase.
n
- Index of element to return.public AnnotationObject hitTest(com.softwarefx.chartfx.server.annotation.AnnotationListBase.HitTest_Point_Enum_r _p_)
Allows you to simulate a mouse click in a particular x,y position in the chart and returns a flag specifying the hit type.
You can use this method in conjunction with any of the Chart FX mouse clicks events to check if a particular annotation object is located where the user clicked.
_p_
- Chart
public int indexOf(AnnotationObject annObject)
Returns the zero based index of a specific item in a list.
This is useful to find the position of a specific item in the array list.
The copyTo(com.softwarefx.chartfx.server.annotation.AnnotationObject[], int)
method allows you to copy elements of this collection into the specified array.
annObject
- Annotation object to determine the index of.copyTo(com.softwarefx.chartfx.server.annotation.AnnotationObject[], int)
public void insert(int index, AnnotationObject annObj)
Inserts an element into the selected annotation collection at the specified index.
The add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
method is used to add an annotation object to the end of a list or group. The Insert method allows you to insert the object at a specified index.
The get(int)
property may be used to access an annotation object by index from a selected collection.
The contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
method allows you to find if a particular annotation object is included in a selected collection.
index
- Collection index to insert annotation object.annObj
- Annotation object to insert.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
public void remove(AnnotationObject annObj)
Removes the first occurrence of a specified annotation object from the selected collection.
The 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 insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
method.
The 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.
annObj
- Annotation object to remove.add(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
contains(com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
insert(int, com.softwarefx.chartfx.server.annotation.AnnotationObject)
,
Annotations
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |