Class MeterFigure

    • Field Detail

      • DEFAULT_LABEL_FONT

        private static final org.eclipse.swt.graphics.Font DEFAULT_LABEL_FONT
      • valueLabel

        private org.eclipse.draw2d.Label valueLabel
      • HW_RATIO

        public static final double HW_RATIO
    • Constructor Detail

      • MeterFigure

        public MeterFigure()
    • Method Detail

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

        public void setValueLabelVisibility​(boolean visible)
      • setNeedleColor

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

        public org.eclipse.swt.graphics.Color getNeedleColor()
        Returns:
        color of the needle.