Class MeterFigure

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

public class MeterFigure extends AbstractRoundRampedFigure
The figure of Express Meter
  • Field Details

  • Constructor Details

    • MeterFigure

      public MeterFigure()
  • 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
    • setShowMarkers

      public void setShowMarkers(boolean showMarkers)
      Overrides:
      setShowMarkers in class AbstractRoundRampedFigure
      Parameters:
      showMarkers - the showMarkers 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)
    • setNeedleColor

      public void setNeedleColor(Color needleColor)
      Parameters:
      needleColor - the needleColor to set
    • getNeedleColor

      public Color getNeedleColor()
      Returns:
      color of the needle.
    • getBeanInfo

      public BeanInfo getBeanInfo() throws IntrospectionException
      Specified by:
      getBeanInfo in interface Introspectable
      Overrides:
      getBeanInfo in class AbstractScaledWidgetFigure
      Throws:
      IntrospectionException