Search in sources :

Example 1 with MarkerProperty

use of org.csstudio.display.builder.model.widgets.plots.XYPlotWidget.MarkerProperty in project org.csstudio.display.builder by kasemir.

the class XYPlotWidgetRuntime method start.

@Override
public void start() throws Exception {
    super.start();
    for (TraceWidgetProperty trace : widget.propTraces().getValue()) {
        bindings.add(new PVNameToValueBinding(this, trace.traceXPV(), trace.traceXValue()));
        bindings.add(new PVNameToValueBinding(this, trace.traceYPV(), trace.traceYValue()));
        bindings.add(new PVNameToValueBinding(this, trace.traceErrorPV(), trace.traceErrorValue()));
    }
    for (MarkerProperty marker : widget.propMarkers().getValue()) bindMarker(marker.pv(), marker.value());
}
Also used : TraceWidgetProperty(org.csstudio.display.builder.model.widgets.plots.PlotWidgetProperties.TraceWidgetProperty) PVNameToValueBinding(org.csstudio.display.builder.runtime.PVNameToValueBinding) MarkerProperty(org.csstudio.display.builder.model.widgets.plots.XYPlotWidget.MarkerProperty)

Example 2 with MarkerProperty

use of org.csstudio.display.builder.model.widgets.plots.XYPlotWidget.MarkerProperty in project org.csstudio.display.builder by kasemir.

the class XYPlotRepresentation method createJFXNode.

@Override
public Pane createJFXNode() throws Exception {
    // Plot is only active in runtime mode, not edit mode
    plot = new RTValuePlot(!toolkit.isEditMode());
    plot.setUpdateThrottle(RepresentationUpdateThrottle.plot_update_delay, TimeUnit.MILLISECONDS);
    plot.showToolbar(false);
    plot.showCrosshair(false);
    // Create PlotMarkers once. Not allowing adding/removing them at runtime
    if (!toolkit.isEditMode())
        for (MarkerProperty marker : model_widget.propMarkers().getValue()) createMarker(marker);
    return plot;
}
Also used : RTValuePlot(org.csstudio.javafx.rtplot.RTValuePlot) MarkerProperty(org.csstudio.display.builder.model.widgets.plots.XYPlotWidget.MarkerProperty)

Aggregations

MarkerProperty (org.csstudio.display.builder.model.widgets.plots.XYPlotWidget.MarkerProperty)2 TraceWidgetProperty (org.csstudio.display.builder.model.widgets.plots.PlotWidgetProperties.TraceWidgetProperty)1 PVNameToValueBinding (org.csstudio.display.builder.runtime.PVNameToValueBinding)1 RTValuePlot (org.csstudio.javafx.rtplot.RTValuePlot)1