|
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.FilterableChartModel
public class FilterableChartModel
A simple implementation of a FilteringChartModel. TODO: Not the best implementation, as it maintains a model of its own instead of delegating all calls
Constructor Summary | |
---|---|
FilterableChartModel()
|
|
FilterableChartModel(AnnotatedChartModel delegate)
Constructor |
Method Summary | |
---|---|
protected void |
applyFilter()
|
boolean |
equals(Object obj)
|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
Filter<Chartable> |
getFilter()
|
Chartable |
getPoint(int n)
Gets the nth point. |
int |
getPointCount()
Gets the number of points in the data set |
int |
hashCode()
|
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 |
setFilter(Filter<Chartable> filter)
|
protected void |
update()
|
Methods inherited from class com.jidesoft.chart.model.AbstractDelegatingChartModel |
---|
addChartModelListener, chartModelChanged, fireModelChanged, getDelegate, getDelegate, getDelegates, getName, 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 FilterableChartModel()
public FilterableChartModel(AnnotatedChartModel delegate)
delegate
- the delegate chart modelMethod Detail |
---|
public int getAnnotationCount()
AnnotationModel
getAnnotationCount
in interface AnnotationModel
getAnnotationCount
in class AbstractDelegatingChartModel
AbstractDelegatingChartModel.getAnnotationCount()
public Annotation getAnnotation(int n)
AnnotationModel
getAnnotation
in interface AnnotationModel
getAnnotation
in class AbstractDelegatingChartModel
n
- the index.
AbstractDelegatingChartModel.getAnnotation(int)
public boolean isAnnotationsVisible()
AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
visible
- whether annotations should be shownpublic Chartable getPoint(int n)
ChartModel
getPoint
in interface ChartModel
getPoint
in class AbstractDelegatingChartModel
n
- the index
ChartModel
.AbstractDelegatingChartModel.getPoint(int)
public int getPointCount()
ChartModel
getPointCount
in interface ChartModel
getPointCount
in class AbstractDelegatingChartModel
AbstractDelegatingChartModel.getPointCount()
public Filter<Chartable> getFilter()
public void setFilter(Filter<Chartable> filter)
protected void applyFilter()
protected void update()
update
in class AbstractDelegatingChartModel
AbstractDelegatingChartModel.update()
public int hashCode()
hashCode
in class AbstractDelegatingChartModel
public boolean equals(Object obj)
equals
in class AbstractDelegatingChartModel
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |