Package quadbase.util
Interface IAnnotationSet
public interface IAnnotationSet
This class contains all annotations of the chart object. Note that annotations of other objects,
such as TrendLine, HozVertLine and ControlLine, are not stored here.
This class also has a method to create a new annotation for any referenced object
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(IAnnotation anno) Adds an annotation to the chart.Returns a list of IAnnotation objects using the whole chart as the referenced object.newAnnotation(String text) Returns a new annotation object using the origin of the chart as the reference point.newAnnotation(String[] text) Returns a new annotation object using the origin of the chart as the reference point.newAnnotation(String[] text, int[] shape, Color[] color) Returns a new annotation object using the origin of the chart as the reference point.newAnnotation(String[] text, int[] shape, Color[] color, IReferenceObj refObj) Returns a new annotation object with a specific referenced object.newAnnotation(String[] text, IReferenceObj refObj) Returns a new annotation object with a specific referenced object.newAnnotation(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 panelbooleanremoveAnnotation(IAnnotation anno) Removes an annotation from the chart.
-
Method Details
-
getAnnotationList
Vector getAnnotationList()Returns a list of IAnnotation objects using the whole chart as the referenced object. Note that every data line, such as TrendLine, Horizontal line and Vertical line, keeps its own annotation list.- Returns:
- Annotation Objects
- See Also:
-
newAnnotation
Returns a new annotation object using the origin of the chart as the reference point.- Parameters:
text- String that appears in the Annotation- Returns:
- An annotation object
-
newAnnotation
Returns a new annotation object using the origin of the chart as the reference point.- Parameters:
text- String array that appears in the Annotation- Returns:
- An annotation object
-
newAnnotation
Returns a new annotation object using the origin of the chart as the reference point.- Parameters:
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 colorAvailable shape values are: QbChart.NOSYMBOL QbChart.CROSS QbChart.CIRCLE QbChart.SQUARE QbChart.TRIANGLE QbChart.PLUS QbChart.STAR QbChart.DASH
color- symbols color- Returns:
- An annotation object
-
newAnnotation
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- Parameters:
text- String that appears in the Annotation- Returns:
- An annotation object
-
newAnnotation
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.- Parameters:
text- String array that appears in the Annotation- Returns:
- An annotation object
-
newAnnotation
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.- Parameters:
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 color- Returns:
- An annotation object
-
addAnnotation
Adds an annotation to the chart.- Parameters:
anno- The annotation object
-
removeAnnotation
Removes an annotation from the chart.- Parameters:
anno- The annotation object
-