|
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.WaterfallModelAdapter
public class WaterfallModelAdapter
This class converts a waterfall model to a conventional chart model. A waterfall model is one in which the first and last points of the model are absolute values, whereas the (y) values in between are interpreted as differences, each y value being a difference from the previous y value.
| Field Summary | |
|---|---|
static Highlight |
FALLING
|
static Highlight |
FIRST
|
static Highlight |
LAST
|
static Highlight |
RISING
|
| Constructor Summary | |
|---|---|
WaterfallModelAdapter(ChartModel waterfallModel)
Constructs a conventional ChartModel out of a waterfall model. |
|
| 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 |
boolean |
isAnnotationsVisible()
Use this method to discover whether annotations should be shown or hidden. |
boolean |
isCyclical()
Cyclical models are quite rare so we return a value of false here as a default. |
Iterator<Chartable> |
iterator()
|
void |
setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown |
protected void |
update()
Updates the points of this model based on the points of its delegate model |
| Methods inherited from class com.jidesoft.chart.model.AbstractDelegatingChartModel |
|---|
addChartModelListener, chartModelChanged, equals, fireModelChanged, getDelegate, getDelegate, getDelegates, getName, hashCode, init, removeChartModelListener, setDelegate, setDelegates, setDelegates, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Highlight FIRST
public static final Highlight RISING
public static final Highlight FALLING
public static final Highlight LAST
| Constructor Detail |
|---|
public WaterfallModelAdapter(ChartModel waterfallModel)
waterfallModel - a chart model in which the values are interpreted as waterfall values| Method Detail |
|---|
protected void update()
update in class AbstractDelegatingChartModelpublic int getAnnotationCount()
getAnnotationCount in interface AnnotationModelgetAnnotationCount in class AbstractDelegatingChartModelpublic Annotation getAnnotation(int n)
getAnnotation in interface AnnotationModelgetAnnotation in class AbstractDelegatingChartModeln - the index.
public boolean isAnnotationsVisible()
public void setAnnotationsVisible(boolean visible)
visible - whether annotations should be shownpublic Chartable getPoint(int n)
getPoint in interface ChartModelgetPoint in class AbstractDelegatingChartModeln - the index
ChartModel.public int getPointCount()
getPointCount in interface ChartModelgetPointCount in class AbstractDelegatingChartModelpublic boolean isCyclical()
isCyclical in interface ChartModelisCyclical in class AbstractDelegatingChartModelpublic Iterator<Chartable> iterator()
iterator in interface Iterable<Chartable>iterator in class AbstractDelegatingChartModel
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||