Class ProgressBarModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class ProgressBarModel extends AbstractMarkedWidgetModel
This class defines a scaled slider widget model.
  • Field Details

  • Constructor Details

    • ProgressBarModel

      public ProgressBarModel()
  • 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 AbstractMarkedWidgetModel
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • getFillColor

      public Color getFillColor()
      Returns:
      the fill color
    • isFillColorAlarmSensitive

      public boolean isFillColorAlarmSensitive()
      Returns:
      true if the fill color is sensitive to alarm
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      true if the widget would be painted with 3D effect, false otherwise
    • isShowLabel

      public boolean isShowLabel()
    • isHorizontal

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

      public Color getFillbackgroundColor()
      Gets the RGB for fillbackground.
      Returns:
      The fillbackground color
    • getOrigin

      public double getOrigin()
    • isOriginIgnored

      public boolean isOriginIgnored()
    • isIndicatorMode

      public boolean isIndicatorMode()
    • 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.