Class ScaledSliderFigure

All Implemented Interfaces:
org.eclipse.draw2d.IFigure, Introspectable

public class ScaledSliderFigure
extends AbstractLinearMarkedFigure
A Scaled Slider figure
  • Constructor Details

  • Method Details

    • addManualValueChangeListener

      public void addManualValueChangeListener​(IManualValueChangeListener listener)
      Add a slider listener.
      Parameters:
      listener - The slider listener to add.
    • removeManualValueChangeListener

      public void removeManualValueChangeListener​(IManualValueChangeListener listener)
      Remove a manual value change listener.
      Parameters:
      listener - the listner to be removed.
    • getFillBackgroundColor

      public org.eclipse.swt.graphics.Color getFillBackgroundColor()
      Returns:
      the fillBackgroundColor
    • getFillColor

      public org.eclipse.swt.graphics.Color getFillColor()
      Returns:
      the fillColor
    • getPageIncrement

      public double getPageIncrement()
      Returns:
      the pageIncrement
    • getStepIncrement

      public double getStepIncrement()
      Returns:
      the stepIncrement
    • getThumbColor

      public org.eclipse.swt.graphics.Color getThumbColor()
      Returns:
      the thumbColor
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      the effect3D
    • isHorizontal

      public boolean isHorizontal()
      Returns:
      the horizontal
    • revalidate

      public void revalidate()
      Specified by:
      revalidate in interface org.eclipse.draw2d.IFigure
      Overrides:
      revalidate in class org.eclipse.draw2d.Figure
    • isOpaque

      public boolean isOpaque()
      Specified by:
      isOpaque in interface org.eclipse.draw2d.IFigure
      Overrides:
      isOpaque in class AbstractScaledWidgetFigure
    • manualSetValue

      public void manualSetValue​(double value)
      Set Value from manual control of the widget. Value will be coerced in range.
      Parameters:
      value -
    • pageDown

      public void pageDown()
    • pageUp

      public void pageUp()
    • setDrawFocus

      public void setDrawFocus​(boolean drawFocus)
      Set the focus rectangle should be drawn on the figure when it has focus.
      Parameters:
      drawFocus - true to draw focus rectangle.
    • isDrawFocus

      public boolean isDrawFocus()
      Get whether the focus rectangle is drawn when figure has focus.
      Returns:
      true if focus rectangle is drawn
    • paintClientArea

      protected void paintClientArea​(org.eclipse.draw2d.Graphics graphics)
      Overrides:
      paintClientArea in class org.eclipse.draw2d.Figure
    • setEffect3D

      public void setEffect3D​(boolean effect3D)
      Parameters:
      effect3D - the effect3D to set
    • setEnabled

      public void setEnabled​(boolean value)
      Specified by:
      setEnabled in interface org.eclipse.draw2d.IFigure
      Overrides:
      setEnabled in class org.eclipse.draw2d.Figure
    • setFillBackgroundColor

      public void setFillBackgroundColor​(org.eclipse.swt.graphics.Color fillBackgroundColor)
      Parameters:
      fillBackgroundColor - the fillBackgroundColor to set
    • setFillColor

      public void setFillColor​(org.eclipse.swt.graphics.Color fillColor)
      Parameters:
      fillColor - the fillColor to set
    • setHorizontal

      public void setHorizontal​(boolean horizontal)
      Parameters:
      horizontal - the horizontal to set
    • setPageIncrement

      public void setPageIncrement​(double pageIncrement)
    • setStepIncrement

      public void setStepIncrement​(double stepIncrement)
      Parameters:
      stepIncrement - the stepIncrement to set
    • setThumbColor

      public void setThumbColor​(org.eclipse.swt.graphics.Color thumbColor)
      Parameters:
      thumbColor - the thumbColor to set
    • setValue

      public void setValue​(double value)
      Overrides:
      setValue in class AbstractScaledWidgetFigure
      Parameters:
      value - the value to set
    • stepDown

      public void stepDown()
    • stepUp

      public void stepUp()