Class KnobFigure

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

public class KnobFigure extends AbstractRoundRampedFigure
The figure of knob
  • Constructor Details

    • KnobFigure

      public KnobFigure()
  • Method Details

    • addManualValueChangeListener

      public void addManualValueChangeListener(IManualValueChangeListener listener)
      Add a knob listener.
      Parameters:
      listener - The knob listener to add.
    • getIncrement

      public double getIncrement()
      Returns:
      the increment
    • getThumbColor

      public Color getThumbColor()
      Returns:
      the thumbColor
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      the effect3D
    • manualSetValue

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

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

      public void removeManualValueChangeListener(IManualValueChangeListener listener)
    • setBounds

      public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
      Specified by:
      setBounds in interface org.eclipse.draw2d.IFigure
      Overrides:
      setBounds in class org.eclipse.draw2d.Figure
    • setBulbColor

      public void setBulbColor(Color color)
      Parameters:
      color - the bulb color to set
    • setCursor

      public void setCursor(Cursor cursor)
      Specified by:
      setCursor in interface org.eclipse.draw2d.IFigure
      Overrides:
      setCursor 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
    • setFont

      public void setFont(Font f)
      Specified by:
      setFont in interface org.eclipse.draw2d.IFigure
      Overrides:
      setFont in class org.eclipse.draw2d.Figure
    • setIncrement

      public void setIncrement(double increment)
      Parameters:
      increment - the increment to set
    • setThumbColor

      public void setThumbColor(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
    • setValueLabelVisibility

      public void setValueLabelVisibility(boolean visible)