Class ErrorBarPolicyAbsoluteSummation

    • Constructor Detail

      • ErrorBarPolicyAbsoluteSummation

        public ErrorBarPolicyAbsoluteSummation​(double xError,
                                               double yError)
                                        throws java.lang.IllegalArgumentException
        Creates an instance with the given absolute errors to add in x and y direction.

        The absolute errors are added to / subtracted from the absolut x and y values to render.

        Parameters:
        xError - a positive value that is added to / subtracted from the x value to render.
        yError - a positive value that is added to / subtracted from the y value to render.
        Throws:
        java.lang.IllegalArgumentException - if arguments are < 0.
    • Method Detail

      • getXError

        public final double getXError​(double xValue)
        Description copied from interface: IErrorBarPolicy
        Returns the relative x error (value domain) that is added to / subtracted from the values to display.

        Parameters:
        xValue - the absolute x value (not pixel) to get the error for.
        Returns:
        the relative x error in value domain that is added to / subtracted from the values to display.
        See Also:
        IErrorBarPolicy.getXError(double)
      • getYError

        public final double getYError​(double yValue)
        Description copied from interface: IErrorBarPolicy
        Returns the relative y error (value domain) that is added to / subtracted from the values to display.

        Parameters:
        yValue - the absolute y value (not pixel) to get the error for.
        Returns:
        the relative y error in value domain that is added to / subtracted from the values to display.
        See Also:
        IErrorBarPolicy.getYError(double)
      • setXError

        public final void setXError​(double xError)
                             throws java.lang.IllegalArgumentException
        Sets the absolute x error to add to each error bar.

        The absolute error is added to the absolut x values to render. It has to be > 0.

        Parameters:
        xError - a positive value.
        Throws:
        java.lang.IllegalArgumentException - if the argument is < 0.
      • setYError

        public final void setYError​(double yError)
                             throws java.lang.IllegalArgumentException
        Sets the absolute y error to add to each error bar.

        The absolute error is added to the absolut y values to render. It has to be > 0.

        Parameters:
        yError - a positive value.
        Throws:
        java.lang.IllegalArgumentException - if the argument is < 0.