Class GaugeFigure

    • Field Detail

      • WHITE_COLOR

        private final org.eclipse.swt.graphics.Color WHITE_COLOR
      • BORDER_COLOR

        private final org.eclipse.swt.graphics.Color BORDER_COLOR
      • GRAY_COLOR

        private final org.eclipse.swt.graphics.Color GRAY_COLOR
      • DEFAULT_NEEDLE_COLOR

        private final org.eclipse.swt.graphics.Color DEFAULT_NEEDLE_COLOR
      • DEFAULT_LABEL_FONT

        private final org.eclipse.swt.graphics.Font DEFAULT_LABEL_FONT
      • effect3D

        private boolean effect3D
      • valueLabel

        private org.eclipse.draw2d.Label valueLabel
      • support3D

        private java.lang.Boolean support3D
      • unitLabel

        private org.eclipse.draw2d.Label unitLabel
      • unit

        private java.lang.String unit
      • titleLabel

        private org.eclipse.draw2d.Label titleLabel
      • title

        private java.lang.String title
    • Constructor Detail

      • GaugeFigure

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