Search in sources :

Example 6 with AnalogRenderer

use of com.serotonin.m2m2.view.text.AnalogRenderer in project ma-core-public by infiniteautomation.

the class DataPointVO method createIntegralRenderer.

public TextRenderer createIntegralRenderer() {
    AnalogRenderer renderer = new AnalogRenderer();
    renderer.setUnit(defaultIntegralUnit());
    if (useIntegralUnit)
        renderer.setRenderedUnit(integralUnit);
    else
        renderer.setRenderedUnit(defaultIntegralUnit());
    renderer.setUseUnitAsSuffix(true);
    renderer.setFormat("0.0");
    return renderer;
}
Also used : AnalogRenderer(com.serotonin.m2m2.view.text.AnalogRenderer)

Aggregations

AnalogRenderer (com.serotonin.m2m2.view.text.AnalogRenderer)6 ShouldNeverHappenException (com.serotonin.ShouldNeverHappenException)2 BinaryTextRenderer (com.serotonin.m2m2.view.text.BinaryTextRenderer)2 MultistateRenderer (com.serotonin.m2m2.view.text.MultistateRenderer)2 PlainRenderer (com.serotonin.m2m2.view.text.PlainRenderer)2 RangeRenderer (com.serotonin.m2m2.view.text.RangeRenderer)2 TimeRenderer (com.serotonin.m2m2.view.text.TimeRenderer)2 ValueMonitor (com.infiniteautomation.mango.monitor.ValueMonitor)1 ProcessMessage (com.serotonin.m2m2.i18n.ProcessMessage)1 ProcessResult (com.serotonin.m2m2.i18n.ProcessResult)1 ImageChartRenderer (com.serotonin.m2m2.view.chart.ImageChartRenderer)1 NoneRenderer (com.serotonin.m2m2.view.text.NoneRenderer)1 TextRenderer (com.serotonin.m2m2.view.text.TextRenderer)1 DataPointVO (com.serotonin.m2m2.vo.DataPointVO)1 AbstractPointEventDetectorVO (com.serotonin.m2m2.vo.event.detector.AbstractPointEventDetectorVO)1 DataPointPropertiesTemplateVO (com.serotonin.m2m2.vo.template.DataPointPropertiesTemplateVO)1