public abstract class TimePeriodChartRenderer extends BaseChartRenderer
BaseChartRenderer.Factory
Modifier and Type | Field and Description |
---|---|
private int |
numberOfPeriods |
private static long |
serialVersionUID |
private int |
timePeriod |
private static int |
version |
definitions
TYPE_IMAGE, TYPE_NONE, TYPE_STATS, TYPE_TABLE
Constructor and Description |
---|
TimePeriodChartRenderer() |
TimePeriodChartRenderer(int timePeriod,
int numberOfPeriods) |
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Convenience method for getting the duration of the chart period.
|
int |
getNumberOfPeriods() |
long |
getStartTime()
Convenience method for getting the start time of the chart period.
|
int |
getTimePeriod() |
void |
jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json) |
void |
jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map) |
private void |
readObject(java.io.ObjectInputStream in) |
void |
setNumberOfPeriods(int numberOfPeriods) |
void |
setTimePeriod(int timePeriod) |
private void |
writeObject(java.io.ObjectOutputStream out) |
ensureDefinitions, getExportTypes, getImplementations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDataToModel, getDef, getTypeName
private int timePeriod
private int numberOfPeriods
private static final long serialVersionUID
private static final int version
public TimePeriodChartRenderer()
public TimePeriodChartRenderer(int timePeriod, int numberOfPeriods)
public long getStartTime()
public long getDuration()
public int getNumberOfPeriods()
public void setNumberOfPeriods(int numberOfPeriods)
public int getTimePeriod()
public void setTimePeriod(int timePeriod)
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException
java.io.IOException
public void jsonDeserialize(com.serotonin.json.JsonReader reader, com.serotonin.json.JsonObject json) throws com.serotonin.json.JsonException
jsonDeserialize
in interface com.serotonin.json.JsonSerializable
jsonDeserialize
in class BaseChartRenderer
com.serotonin.json.JsonException
public void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize
in interface com.serotonin.json.JsonSerializable
jsonSerialize
in class BaseChartRenderer