Class AbstractMarkedWidgetModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource
Direct Known Subclasses:
GaugeModel, KnobModel, MeterModel, ProgressBarModel, ScaledSliderModel, TankModel, ThermometerModel

public abstract class AbstractMarkedWidgetModel extends AbstractScaledWidgetModel
This class defines a common widget model for any widget which has one scale and standard markers. Standard markers are comprised of LOLO, LO, HI, HIHI.
  • Field Details

  • Constructor Details

    • AbstractMarkedWidgetModel

      public AbstractMarkedWidgetModel()
  • Method Details

    • 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 AbstractScaledWidgetModel
    • getLoloLevel

      public double getLoloLevel()
      Gets the lolo level for this model.
      Returns:
      double The lolo level
    • getLoLevel

      public double getLoLevel()
      Gets the lo level for this model.
      Returns:
      double The lo level
    • getHiLevel

      public double getHiLevel()
      Gets the hi level for this model.
      Returns:
      double The hi level
    • getHihiLevel

      public double getHihiLevel()
      Gets the hihi level of this model.
      Returns:
      double The hihi level
    • getLoloColor

      public Color getLoloColor()
      Returns:
      the lolo color
    • getLoColor

      public Color getLoColor()
      Returns:
      the lo color
    • getHiColor

      public Color getHiColor()
      Returns:
      the hi color
    • getHihiColor

      public Color getHihiColor()
      Returns:
      the hihi color
    • isShowMarkers

      public boolean isShowMarkers()
      Returns:
      true if the minor ticks should be shown, false otherwise
    • isShowLolo

      public boolean isShowLolo()
      Returns:
      true if the lolo marker should be shown, false otherwise
    • isShowLo

      public boolean isShowLo()
      Returns:
      true if the lo marker should be shown, false otherwise
    • isShowHi

      public boolean isShowHi()
      Returns:
      true if the hi marker should be shown, false otherwise
    • isShowHihi

      public boolean isShowHihi()
      Returns:
      true if the hihi marker should be shown, false otherwise
    • isLimitsFromPV

      public boolean isLimitsFromPV()
      Returns:
      true if limits will be load from DB, false otherwise
    • isControlWidget

      public boolean isControlWidget()
      Returns:
      true if this widget is a control widget, i.e. used to SET PV values