Class PictureWidget


  • public class PictureWidget
    extends MacroWidget
    Widget that displays an image loaded from a file
    • Field Detail

      • WIDGET_DESCRIPTOR

        public static final org.csstudio.display.builder.model.WidgetDescriptor WIDGET_DESCRIPTOR
        Widget descriptor
      • propRotation

        public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double> propRotation
        'rotation' property: What is the rotation of the picture
      • propStretch

        public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Boolean> propStretch
      • propOpacity

        public static final org.csstudio.display.builder.model.WidgetPropertyDescriptor<java.lang.Double> propOpacity
        An opacity property. Controlling it from a rule or script works as a way to do a simple animation.
    • Constructor Detail

      • PictureWidget

        public PictureWidget()
    • Method Detail

      • propRotation

        public WidgetProperty<java.lang.Double> propRotation()
        Returns:
        'rotation' property
      • propFile

        public WidgetProperty<java.lang.String> propFile()
        Returns:
        'text' property
      • propStretch

        public WidgetProperty<java.lang.Boolean> propStretch()
        Returns:
        'stretch' property
      • propOpacity

        public WidgetProperty<java.lang.Double> propOpacity()
        Returns:
        'opacity' property
      • getConfigurator

        public org.csstudio.display.builder.model.WidgetConfigurator getConfigurator​(org.csstudio.display.builder.model.Version persisted_version)
                                                                              throws java.lang.Exception
        Description copied from class: Widget
        Obtain configurator.

        While typically using the default WidgetConfigurator, widget may provide a different configurator for reading older persisted date.

        Overrides:
        getConfigurator in class Widget
        Parameters:
        persisted_version - Version of the persisted data.
        Returns:
        Widget configurator for that version
        Throws:
        java.lang.Exception - if persisted version cannot be handled