Class TextUpdateModel

All Implemented Interfaces:
IPVWidgetModel, ITextModel, IAdaptable, IPropertySource
Direct Known Subclasses:
TextInputModel

public class TextUpdateModel extends LabelModel
The model for text indicator.
  • Field Details

  • Constructor Details

    • TextUpdateModel

      public TextUpdateModel()
  • Method Details

    • getTypeID

      public String getTypeID()
      Overrides:
      getTypeID in class LabelModel
      Returns:
      the unique typeID of the model.
    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Overrides:
      configureProperties in class LabelModel
    • getFormat

      public FormatEnum getFormat()
    • getPrecision

      public int getPrecision()
    • isPrecisionFromDB

      public boolean isPrecisionFromDB()
    • isShowUnits

      public boolean isShowUnits()
    • isShowLoHi

      public boolean isShowLoHi()
    • getRotationAngle

      public double getRotationAngle()
      Returns the rotation angle for this widget.
      Returns:
      The rotation angle
    • setRotationAngle

      public void setRotationAngle(double angle)
    • rotate90

      public void rotate90(boolean clockwise)
      Description copied from class: AbstractWidgetModel
      Rotate the widget figure 90 degree.
      Overrides:
      rotate90 in class AbstractWidgetModel
      Parameters:
      clockwise - true if rotate clockwise. false if counterclockwise.
    • rotate90

      public void rotate90(boolean clockwise, org.eclipse.draw2d.geometry.Point center)
      Description copied from class: AbstractWidgetModel
      Rotate the widget figure 90 degree.
      Overrides:
      rotate90 in class AbstractWidgetModel
      Parameters:
      clockwise - true if rotate clockwise. false if counterclockwise.