public interface IAnnotationSet
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(IAnnotation anno)
Adds an annotation to the chart.
|
java.util.Vector |
getAnnotationList()
Returns a list of IAnnotation objects using the whole chart as the referenced object.
|
IAnnotation |
newAnnotation(java.lang.String text)
Returns a new annotation object using the origin of the chart as the reference point.
|
IAnnotation |
newAnnotation(java.lang.String[] text)
Returns a new annotation object using the origin of the chart as the reference point.
|
IAnnotation |
newAnnotation(java.lang.String[] text,
int[] shape,
java.awt.Color[] color)
Returns a new annotation object using the origin of the chart as the reference point.
|
IAnnotation |
newAnnotation(java.lang.String[] text,
int[] shape,
java.awt.Color[] color,
IReferenceObj refObj)
Returns a new annotation object with a specific referenced object.
|
IAnnotation |
newAnnotation(java.lang.String[] text,
IReferenceObj refObj)
Returns a new annotation object with a specific referenced object.
|
IAnnotation |
newAnnotation(java.lang.String text,
IReferenceObj refObj)
Returns a new annotation object with a specific referenced object If the value of refObj is
null, the reference point is the lower-left corner of the panel
|
boolean |
removeAnnotation(IAnnotation anno)
Removes an annotation from the chart.
|
java.util.Vector getAnnotationList()
IAnnotation
IAnnotation newAnnotation(java.lang.String text)
text
- String that appears in the AnnotationIAnnotation newAnnotation(java.lang.String[] text)
text
- String array that appears in the AnnotationIAnnotation newAnnotation(java.lang.String[] text, int[] shape, java.awt.Color[] color)
text
- String array that appears in the Annotationshape
- The array containing the shapes for all the symbols. The number of points in this
array should match the number of text and color
Available shape values are: QbChart.NOSYMBOL QbChart.CROSS QbChart.CIRCLE QbChart.SQUARE QbChart.TRIANGLE QbChart.PLUS QbChart.STAR QbChart.DASH
color
- symbols colorIAnnotation newAnnotation(java.lang.String text, IReferenceObj refObj)
text
- String that appears in the AnnotationIAnnotation newAnnotation(java.lang.String[] text, IReferenceObj refObj)
text
- String array that appears in the AnnotationIAnnotation newAnnotation(java.lang.String[] text, int[] shape, java.awt.Color[] color, IReferenceObj refObj)
text
- String array that appears in the Annotationshape
- The array containing the shapes for all the symbols. The number of points in this
array should match the number of text and color.
Available shape values are: QbChart.CROSS QbChart.CIRCLE QbChart.SQUARE QbChart.TRIANGLE QbChart.PLUS QbChart.STAR QbChart.DASH
color
- symbols colorvoid addAnnotation(IAnnotation anno)
anno
- The annotation objectboolean removeAnnotation(IAnnotation anno)
anno
- The annotation object