use of com.serotonin.m2m2.view.chart.TableChartRenderer in project ma-core-public by infiniteautomation.
the class DefaultDataPointPropertiesTemplateFactory method createDefaultMultistateTemplate.
protected DataPointPropertiesTemplateVO createDefaultMultistateTemplate() {
DataPointPropertiesTemplateVO defaultMultistatePointTemplate = new DataPointPropertiesTemplateVO();
defaultMultistatePointTemplate.setXid(MULTISTATE_XID);
defaultMultistatePointTemplate.setName("Multistate");
defaultMultistatePointTemplate.setDataTypeId(DataTypes.MULTISTATE);
defaultMultistatePointTemplate.setDefaultTemplate(true);
defaultMultistatePointTemplate.setDefinition(new DataPointPropertiesTemplateDefinition());
defaultMultistatePointTemplate.setChartColour("");
defaultMultistatePointTemplate.setPlotType(PlotTypes.STEP);
defaultMultistatePointTemplate.setLoggingType(LoggingTypes.ON_CHANGE);
defaultMultistatePointTemplate.setDefaultCacheSize(1);
defaultMultistatePointTemplate.setTextRenderer(new PlainRenderer());
TableChartRenderer multistateChartRenderer = new TableChartRenderer();
multistateChartRenderer.setLimit(10);
defaultMultistatePointTemplate.setChartRenderer(multistateChartRenderer);
return defaultMultistatePointTemplate;
}
Aggregations