Class ScrollBarModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class ScrollBarModel extends AbstractPVWidgetModel
The model of scroll bar widget.
  • Field Details

  • Constructor Details

    • ScrollBarModel

      public ScrollBarModel()
  • 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
    • isHorizontal

      public boolean isHorizontal()
      Returns:
      true if the widget is in horizontal orientation, false otherwise
    • getPageIncrement

      public Double getPageIncrement()
      Returns:
      the page increment
    • getStepIncrement

      public Double getStepIncrement()
      Returns:
      the step increment
    • getBarLength

      public Double getBarLength()
      Returns:
      the length of the dragging bar.
    • isLimitsFromPV

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

      public boolean isShowValueTip()
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • 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.