|
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.TransformingChartModel
public class TransformingChartModel
A chart model that provides a general transformation mechanism. Note that every point is transformed, so this cannot be used for filtering. This could be used for example to translate the chart, or perhaps to modify the data values by, for example, showing the logarithm.
The hooking up of listeners and receiving change events is handled by the super class
| Constructor Summary | |
|---|---|
TransformingChartModel()
|
|
TransformingChartModel(AnnotatedChartModel delegate)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
The equality of a TransformingChartModel depends on its name |
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 |
Transform<Chartable> |
getTransform()
|
int |
hashCode()
TransformingChartModels that have the same delegate need to have different hash codes so that they are recognised as being different. |
protected void |
init()
Assigns a default name to the instance during construction. |
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 |
setTransform(Transform<Chartable> transform)
|
String |
toString()
|
Chartable |
transform(Chartable chartable)
|
protected void |
update()
|
| Methods inherited from class com.jidesoft.chart.model.AbstractDelegatingChartModel |
|---|
addChartModelListener, chartModelChanged, fireModelChanged, getDelegate, getDelegate, getDelegates, getName, isCyclical, iterator, removeChartModelListener, setDelegate, setDelegates, setDelegates, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransformingChartModel()
public TransformingChartModel(AnnotatedChartModel delegate)
| Method Detail |
|---|
protected void init()
init in class AbstractDelegatingChartModelpublic Transform<Chartable> getTransform()
public void setTransform(Transform<Chartable> transform)
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
isAnnotationsVisible in interface AnnotationModelpublic void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible in interface AnnotationModelvisible - 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 AbstractDelegatingChartModelpublic Chartable transform(Chartable chartable)
transform in interface Transform<Chartable>public int hashCode()
hashCode in class AbstractDelegatingChartModelpublic boolean equals(Object obj)
equals in class AbstractDelegatingChartModelpublic String toString()
toString in class Object
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||