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());
}
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;
}
Aggregations