Search in sources :

Example 6 with TableChartRenderer

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;
}
Also used : TableChartRenderer(com.serotonin.m2m2.view.chart.TableChartRenderer) PlainRenderer(com.serotonin.m2m2.view.text.PlainRenderer)

Aggregations

TableChartRenderer (com.serotonin.m2m2.view.chart.TableChartRenderer)6 ImageChartRenderer (com.serotonin.m2m2.view.chart.ImageChartRenderer)3 ImageFlipbookRenderer (com.serotonin.m2m2.view.chart.ImageFlipbookRenderer)3 ShouldNeverHappenException (com.serotonin.ShouldNeverHappenException)2 StatisticsChartRenderer (com.serotonin.m2m2.view.chart.StatisticsChartRenderer)2 PlainRenderer (com.serotonin.m2m2.view.text.PlainRenderer)2 DataPointDao (com.serotonin.m2m2.db.dao.DataPointDao)1 TranslatableMessage (com.serotonin.m2m2.i18n.TranslatableMessage)1 ChartRenderer (com.serotonin.m2m2.view.chart.ChartRenderer)1 BinaryTextRenderer (com.serotonin.m2m2.view.text.BinaryTextRenderer)1 DataPointSummary (com.serotonin.m2m2.vo.DataPointSummary)1 DataPointVO (com.serotonin.m2m2.vo.DataPointVO)1 User (com.serotonin.m2m2.vo.User)1 PermissionException (com.serotonin.m2m2.vo.permission.PermissionException)1 TimePeriodModel (com.serotonin.m2m2.web.mvc.rest.v1.model.dataPoint.TimePeriodModel)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1