Class LabelWidget


  • public class LabelWidget
    extends MacroWidget
    Widget that displays a static text
    • Field Detail

      • WIDGET_DESCRIPTOR

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

      • LabelWidget

        public LabelWidget()
    • Method Detail

      • 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
      • propText

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

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetFont> propFont()
        Returns:
        'font' property
      • propForegroundColor

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propForegroundColor()
        Returns:
        'foreground_color' property
      • propBackgroundColor

        public WidgetProperty<org.csstudio.display.builder.model.properties.WidgetColor> propBackgroundColor()
        Returns:
        'background_color' property
      • propTransparent

        public WidgetProperty<java.lang.Boolean> propTransparent()
        Returns:
        Display 'transparent'
      • propHorizontalAlignment

        public WidgetProperty<org.csstudio.display.builder.model.properties.HorizontalAlignment> propHorizontalAlignment()
        Returns:
        'horizontal_alignment' property
      • propVerticalAlignment

        public WidgetProperty<org.csstudio.display.builder.model.properties.VerticalAlignment> propVerticalAlignment()
        Returns:
        'vertical_alignment' property
      • propRotationStep

        public WidgetProperty<org.csstudio.display.builder.model.properties.RotationStep> propRotationStep()
        Returns:
        'rotation_step' property
      • propAutoSize

        public WidgetProperty<java.lang.Boolean> propAutoSize()
        Returns:
        'auto_size' property
      • propWrapWords

        public WidgetProperty<java.lang.Boolean> propWrapWords()
        Returns:
        'wrap_words' property