Class PolylineWidget


  • public class PolylineWidget
    extends PolyBaseWidget
    Widget that displays a static line of points
    • Field Detail

      • WIDGET_DESCRIPTOR

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

      • PolylineWidget

        public PolylineWidget()
    • Method Detail

      • getVersion

        public org.csstudio.display.builder.model.Version getVersion()
        Overrides:
        getVersion in class Widget
        Returns:
        Widget version number
      • getProperty

        public WidgetProperty<?> getProperty​(java.lang.String name)
        Description copied from class: Widget
        Get widget property.

        Meant for rules, scripts and similar code which does not know the exact widget type and thus fetches properties by name.

        Supports access to complex properties by path name, for example "y_axes[1].minimum" to get the minimum property of the second Y axis of a plot.

        To allow use of legacy scripts and rules, the widget implementation may override to handle deprecated property names.

        Caller presumes that the widget actually has the requested property, otherwise throwing Exception.

        Overrides:
        getProperty in class Widget
        Parameters:
        name - Property name
        Returns:
        WidgetProperty
        See Also:
        Widget.checkProperty(String)
      • 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
      • propLineColor

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propLineColor()
        Returns:
        'line_color' property
      • propLineWidth

        public WidgetProperty<java.lang.Integer> propLineWidth()
        Returns:
        'line_width' property
      • propLineStyle

        public WidgetProperty<org.csstudio.display.builder.model.properties.LineStyle> propLineStyle()
        Returns:
        'line_style' property
      • propArrowLength

        public WidgetProperty<java.lang.Integer> propArrowLength()
        Returns:
        'arrow_length' property