|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.model.AbstractDelegatingChartModel com.jidesoft.chart.model.SelectableChartModel
public class SelectableChartModel
This model contains multiple ChartModels and allows the user to select one of them
Constructor Summary | |
---|---|
SelectableChartModel()
|
|
SelectableChartModel(AnnotatedChartModel... newDelegates)
|
Method Summary | |
---|---|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
protected AnnotatedChartModel |
getModel()
|
int |
getModelIndex()
|
Chartable |
getPoint(int n)
Gets the nth point. |
int |
getPointCount()
Gets the number of points in the data set |
boolean |
isAnnotationsVisible()
Use this method to discover whether annotations should be shown or hidden. |
void |
setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown |
void |
setModelIndex(int modelIndex)
|
protected void |
update()
|
Methods inherited from class com.jidesoft.chart.model.AbstractDelegatingChartModel |
---|
addChartModelListener, chartModelChanged, equals, fireModelChanged, getDelegate, getDelegate, getDelegates, getName, hashCode, init, isCyclical, iterator, removeChartModelListener, setDelegate, setDelegates, setDelegates, setName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectableChartModel()
public SelectableChartModel(AnnotatedChartModel... newDelegates)
Method Detail |
---|
public int getModelIndex()
public void setModelIndex(int modelIndex)
protected AnnotatedChartModel getModel()
public int getAnnotationCount()
AnnotationModel
getAnnotationCount
in interface AnnotationModel
getAnnotationCount
in class AbstractDelegatingChartModel
public Annotation getAnnotation(int n)
AnnotationModel
getAnnotation
in interface AnnotationModel
getAnnotation
in class AbstractDelegatingChartModel
n
- the index.
public Chartable getPoint(int n)
ChartModel
getPoint
in interface ChartModel
getPoint
in class AbstractDelegatingChartModel
n
- the index
ChartModel
.public int getPointCount()
ChartModel
getPointCount
in interface ChartModel
getPointCount
in class AbstractDelegatingChartModel
protected void update()
update
in class AbstractDelegatingChartModel
public boolean isAnnotationsVisible()
AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
visible
- whether annotations should be shown
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |