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 |
definitionsTYPE_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, getImplementationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDataToModel, getDef, getTypeNameprivate 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.IOExceptionprivate void readObject(java.io.ObjectInputStream in)
throws java.io.IOException
java.io.IOExceptionpublic void jsonDeserialize(com.serotonin.json.JsonReader reader,
com.serotonin.json.JsonObject json)
throws com.serotonin.json.JsonException
jsonDeserialize in interface com.serotonin.json.JsonSerializablejsonDeserialize in class BaseChartRenderercom.serotonin.json.JsonExceptionpublic void jsonSerialize(java.util.Map<java.lang.String,java.lang.Object> map)
jsonSerialize in interface com.serotonin.json.JsonSerializablejsonSerialize in class BaseChartRenderer