Search in sources :

Example 1 with RangeValue

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

the class DataPointEditDwr method setRangeRenderer.

@DwrPermission(user = true)
public void setRangeRenderer(String format, List<RangeValue> values) {
    RangeRenderer r = new RangeRenderer(format);
    for (RangeValue v : values) r.addRangeValues(v.getFrom(), v.getTo(), v.getText(), v.getColour());
    setTextRenderer(r);
}
Also used : RangeRenderer(com.serotonin.m2m2.view.text.RangeRenderer) RangeValue(com.serotonin.m2m2.view.text.RangeValue) DwrPermission(com.serotonin.m2m2.web.dwr.util.DwrPermission)

Aggregations

RangeRenderer (com.serotonin.m2m2.view.text.RangeRenderer)1 RangeValue (com.serotonin.m2m2.view.text.RangeValue)1 DwrPermission (com.serotonin.m2m2.web.dwr.util.DwrPermission)1