use of org.csstudio.display.builder.runtime.PVNameToValueBinding 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.runtime.PVNameToValueBinding in project org.csstudio.display.builder by kasemir.
the class XYPlotWidgetRuntime method stop.
@Override
public void stop() {
// Disconnect Marker PVs and listeners
for (Map.Entry<WidgetProperty<?>, WidgetPropertyListener<?>> entry : marker_prop_listeners.entrySet()) entry.getKey().removePropertyListener(entry.getValue());
marker_prop_listeners.clear();
for (Map.Entry<RuntimePV, RuntimePVListener> entry : marker_pv_listeners.entrySet()) entry.getKey().removeListener(entry.getValue());
marker_pv_listeners.clear();
for (RuntimePV pv : marker_pvs) {
removePV(pv);
PVFactory.releasePV(pv);
}
marker_pvs.clear();
for (PVNameToValueBinding binding : bindings) binding.dispose();
super.stop();
}
use of org.csstudio.display.builder.runtime.PVNameToValueBinding in project org.csstudio.display.builder by kasemir.
the class KnobWidgetRuntime method start.
@Override
public void start() throws Exception {
super.start();
bindings.add(new PVNameToValueBinding(this, widget.propReadbackPVName(), widget.propReadbackPVValue()));
}
Aggregations