|
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.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 AbstractDelegatingChartModel
public Transform<Chartable> getTransform()
public void setTransform(Transform<Chartable> transform)
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 boolean isAnnotationsVisible()
AnnotationModel
isAnnotationsVisible
in interface AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible
in interface AnnotationModel
visible
- whether annotations should be shownpublic 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 Chartable transform(Chartable chartable)
transform
in interface Transform<Chartable>
public int hashCode()
hashCode
in class AbstractDelegatingChartModel
public boolean equals(Object obj)
equals
in class AbstractDelegatingChartModel
public 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 |