Search in sources :

Example 1 with RTImagePlot

use of org.csstudio.javafx.rtplot.RTImagePlot in project org.csstudio.display.builder by kasemir.

the class ImageRepresentation method createJFXNode.

@Override
public Pane createJFXNode() throws Exception {
    // Plot is only active in runtime mode, not edit mode
    image_plot = new RTImagePlot(!toolkit.isEditMode());
    image_plot.setUpdateThrottle(RepresentationUpdateThrottle.plot_update_delay, TimeUnit.MILLISECONDS);
    image_plot.setAutoscale(false);
    if (!toolkit.isEditMode()) {
        // Create ROIs once. Not allowing adding/removing ROIs in runtime.
        for (ROIWidgetProperty roi : model_widget.propROIs().getValue()) createROI(roi);
    }
    return new Pane(image_plot);
}
Also used : ROIWidgetProperty(org.csstudio.display.builder.model.widgets.plots.ImageWidget.ROIWidgetProperty) RTImagePlot(org.csstudio.javafx.rtplot.RTImagePlot) Pane(javafx.scene.layout.Pane)

Aggregations

Pane (javafx.scene.layout.Pane)1 ROIWidgetProperty (org.csstudio.display.builder.model.widgets.plots.ImageWidget.ROIWidgetProperty)1 RTImagePlot (org.csstudio.javafx.rtplot.RTImagePlot)1