JIDE 3.5.15

com.jidesoft.chart.model
Interface AnnotationModel

All Known Subinterfaces:
AnnotatedChartModel
All Known Implementing Classes:
AbstractDelegatingChartModel, AnnotatedChartModelAdapter, AverageChartModel, ChartableTableModel, DefaultChartModel, FilterableChartModel, SamplingModel, SelectableChartModel, SortedChartModel, SummingChartModel, TableToChartAdapter, TransformingChartModel, TransposingChartModel, WaterfallModelAdapter

public interface AnnotationModel

This interface supports the idea of annotating an object with multiple Annotations. Annotation is also an interface, used as a semantic tag, so this interface can be used flexibly for attaching information of different kinds to some host object.


Method Summary
 Annotation getAnnotation(int n)
          Gets the nth annotation.
 int getAnnotationCount()
          Returns the number of annotations
 boolean isAnnotationsVisible()
          Use this method to discover whether annotations should be shown or hidden.
 void setAnnotationsVisible(boolean visible)
          Specify whether annotations should be shown
 

Method Detail

getAnnotationCount

int getAnnotationCount()
Returns the number of annotations

Returns:
the number of annotations

getAnnotation

Annotation getAnnotation(int n)
Gets the nth annotation.

Parameters:
n - the index.
Returns:
the nth annotation

isAnnotationsVisible

boolean isAnnotationsVisible()
Use this method to discover whether annotations should be shown or hidden.

Returns:
whether annotations should be shown

setAnnotationsVisible

void setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown

Parameters:
visible - whether annotations should be shown

JIDE 3.5.15