Package org.swtchart

Interface IErrorBar

  • All Known Implementing Classes:
    ErrorBar

    public interface IErrorBar
    An error bar.
    • Method Detail

      • setType

        void setType​(IErrorBar.ErrorBarType type)
        Sets the error type.
        Parameters:
        type - the error type
      • getColor

        org.eclipse.swt.graphics.Color getColor()
        Gets the error bar color. The default color is dark gray.
        Returns:
        the error bar color
      • setColor

        void setColor​(org.eclipse.swt.graphics.Color color)
        Sets the error bar color. If null is given, default color will be set.
        Parameters:
        color - the error bar color
      • getLineWidth

        int getLineWidth()
        Gets the line width to draw error bar.
        Returns:
        the line width to draw error bar
      • setLineWidth

        void setLineWidth​(int width)
        Sets the line width to draw error bar. The default line width is 1.
        Parameters:
        width - line width to draw error bar
      • getError

        double getError()
        Gets the error.
        Returns:
        the error
      • setError

        void setError​(double error)
        Sets the error.

        If errors have been set with getPlusErrors() or getMinusErrors(), the value set with this method won't be used.

        Parameters:
        error - the error
      • getPlusErrors

        double[] getPlusErrors()
        Gets the plus errors.
        Returns:
        the plus errors, or empty array if errors are not set.
      • setPlusErrors

        void setPlusErrors​(double[] errors)
        Sets the plus errors.
        Parameters:
        errors - the plus errors
      • getMinusErrors

        double[] getMinusErrors()
        Gets the minus errors.
        Returns:
        the minus errors, or empty array if errors are not set.
      • setMinusErrors

        void setMinusErrors​(double[] errors)
        Sets the minus errors.
        Parameters:
        errors - the minus errors
      • setVisible

        void setVisible​(boolean visible)
        Sets the visibility state.
        Parameters:
        visible - the visibility state
      • isVisible

        boolean isVisible()
        Gets the visibility state.
        Returns:
        true if error bar is visible