|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.model.AbstractDelegatingChartModel
com.jidesoft.chart.model.SamplingModel
public class SamplingModel
A ChartModel that presents a reduced-size version of its delegate by sampling its data. A sampling rate of 10 means that only one in 10 points of the original data set appear in the points presented by this model. It therefore represents a 10-fold reduction in size.
| Constructor Summary | |
|---|---|
SamplingModel()
|
|
SamplingModel(AnnotatedChartModel delegate)
|
|
| Method Summary | |
|---|---|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
Chartable |
getPoint(int n)
Gets the nth point. |
int |
getPointCount()
Gets the number of points in the data set |
int |
getSamplingRate()
|
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 |
setSamplingRate(int samplingRate)
|
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 SamplingModel()
public SamplingModel(AnnotatedChartModel delegate)
| Method Detail |
|---|
public int getSamplingRate()
public void setSamplingRate(int samplingRate)
public int getAnnotationCount()
AnnotationModel
getAnnotationCount in interface AnnotationModelgetAnnotationCount in class AbstractDelegatingChartModelpublic Annotation getAnnotation(int n)
AnnotationModel
getAnnotation in interface AnnotationModelgetAnnotation in class AbstractDelegatingChartModeln - the index.
public boolean isAnnotationsVisible()
AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
visible - whether annotations should be shownpublic Chartable getPoint(int n)
ChartModel
getPoint in interface ChartModelgetPoint in class AbstractDelegatingChartModeln - the index
ChartModel.public int getPointCount()
ChartModel
getPointCount in interface ChartModelgetPointCount in class AbstractDelegatingChartModelprotected void update()
update in class AbstractDelegatingChartModel
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||