Class ScaledSliderModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

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

  • Constructor Details

    • ScaledSliderModel

      public ScaledSliderModel()
  • 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
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      true if the widget would be painted with 3D effect, false otherwise
    • 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
    • getThumbColor

      public Color getThumbColor()
      Gets the RGB for thumb.
      Returns:
      The thumb color
    • getStepIncrement

      public double getStepIncrement()
      Return the increment value.
      Returns:
      The increment value.
    • getPageIncrement

      public double getPageIncrement()
    • 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.