Class AbstractScaledWidgetModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource
Direct Known Subclasses:
AbstractMarkedWidgetModel

public abstract class AbstractScaledWidgetModel extends AbstractPVWidgetModel
This class defines a common widget model for any widget which has a scale.
  • Field Details

  • Constructor Details

    • AbstractScaledWidgetModel

      public AbstractScaledWidgetModel()
  • 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.
      Specified by:
      configureProperties in class AbstractWidgetModel
    • getMinimum

      public Double getMinimum()
      Returns:
      the minimum value
    • getMaximum

      public Double getMaximum()
      Returns:
      the maximum value
    • getMajorTickStepHint

      public Integer getMajorTickStepHint()
      Returns:
      the major tick step hint value
    • isShowMinorTicks

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

      public boolean isShowScale()
      Returns:
      true if the scale should be shown, false otherwise
    • isLogScaleEnabled

      public boolean isLogScaleEnabled()
      Returns:
      true if log scale enabled, false otherwise
    • isTransparent

      public boolean isTransparent()
      Returns, if this widget should have a transparent background.
      Returns:
      boolean True, if it should have a transparent background, false otherwise
    • getScaleFont

      public OPIFont getScaleFont()
    • getScaleFormat

      public String getScaleFormat()
    • getValueLabelFormat

      public String getValueLabelFormat()