P
- Type of Plotpublic abstract class PeriodChart<P extends PeriodPlot> extends Chart
Chart
where the data represents a plot over some period of time.
Various PlotStrategies are provided to map the data onto time periods.PieTimeChart
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
conn
Modifier | Constructor and Description |
---|---|
protected |
PeriodChart(AppContext c) |
protected |
PeriodChart(AppContext c,
TimePeriod p) |
Modifier and Type | Method and Description |
---|---|
protected <D> void |
addData(P ds,
SetRangeMapper<D> t,
D object)
Basic method for mapping an object into a Plot Keep this as a method on
Chart not Plot as this prevents us needing to subclass Plot for Pie and
Time Charts
|
<D> void |
addDataArray(P ds,
SetRangeMapper<D> t,
D[] o)
add data from a set of objects using strategy transform
|
<D> void |
addDataIterator(P ds,
SetRangeMapper<D> t,
java.util.Iterator<D> i)
Add data from an Iterator over objects using a strategy transform.
|
<F> boolean |
addMapData(P ps,
QueryMapper<F> t,
F fac)
Populate chart using a QueryMapper and a factory
|
PeriodChartData<P> |
getChartData() |
java.util.Date |
getEndDate() |
TimePeriod |
getPeriod() |
java.util.Date |
getStartDate() |
abstract Table |
getTable()
Generate a table representing the Chart
|
getLegendName, makeDataset, setChartData, setLegendName, sortSets, sortSets, sortSets
getContext, getLogger, resetLogger
protected PeriodChart(AppContext c)
protected PeriodChart(AppContext c, TimePeriod p)
protected final <D> void addData(P ds, SetRangeMapper<D> t, D object) throws java.lang.Exception
ds
- t
- object
- InvalidTransformException
java.lang.Exception
public final <F> boolean addMapData(P ps, QueryMapper<F> t, F fac) throws InvalidTransformException
F
- type of factoryps
- Plot to add data tot
- QueryMapper to usefac
- Factory to queryInvalidTransformException
public final <D> void addDataIterator(P ds, SetRangeMapper<D> t, java.util.Iterator<D> i) throws java.lang.Exception
D
- type of object being addedds
- t
- i
- java.lang.Exception
public final <D> void addDataArray(P ds, SetRangeMapper<D> t, D[] o) throws java.lang.Exception
D
- type of object being addedds
- t
- o
- java.lang.Exception
public PeriodChartData<P> getChartData()
getChartData
in class Chart
public final TimePeriod getPeriod()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public abstract Table getTable()