Class ThermometerFigure

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

public class ThermometerFigure extends AbstractLinearMarkedFigure
A Thermometer figure
  • Constructor Details

    • ThermometerFigure

      public ThermometerFigure()
  • Method Details

    • getFillBackgroundColor

      public Color getFillBackgroundColor()
      Returns:
      the fillBackgroundColor
    • getFillColor

      public Color getFillColor()
      Returns:
      the fillColor
    • getTemperatureUnit

      public ThermometerFigure.TemperatureUnit getTemperatureUnit()
      Returns:
      the temperatureUnit
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      the effect3D
    • isOpaque

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

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

      public void setFillBackgroundColor(Color fillBackgroundColor)
      Parameters:
      fillBackgroundColor - the fillBackgroundColor to set
    • setFillColor

      public void setFillColor(Color fillColor)
      Parameters:
      fillColor - the fillColor to set
    • setForegroundColor

      public void setForegroundColor(Color fg)
      Specified by:
      setForegroundColor in interface org.eclipse.draw2d.IFigure
      Overrides:
      setForegroundColor in class org.eclipse.draw2d.Figure
    • setShowBulb

      public void setShowBulb(boolean showBulb)
    • setTemperatureUnit

      public void setTemperatureUnit(ThermometerFigure.TemperatureUnit temperatureUnit)
    • setValue

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