Class GaugeFigure

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

public class GaugeFigure
extends AbstractRoundRampedFigure
The figure of gauge
  • Constructor Details

  • Method Details

    • 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
    • setValue

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

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

      public void setNeedleColor​(org.eclipse.swt.graphics.Color needleColor)
      Parameters:
      needleColor - the needleColor to set
    • getNeedleColor

      public org.eclipse.swt.graphics.Color getNeedleColor()
    • setEffect3D

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

      public boolean isEffect3D()
      Returns:
      the effect3D
    • getUnit

      public java.lang.String getUnit()
      Returns:
      the displayed unit
    • setUnit

      public void setUnit​(java.lang.String unit)
      Parameters:
      unit - unit that will be displayed above the value label
    • getTitle

      public java.lang.String getTitle()
      Returns:
      the title associated to this gauge
    • setTitle

      public void setTitle​(java.lang.String title)
      Parameters:
      title - title that will be displayed under the value label