Class ErrorBarPolicyRelative

java.lang.Object
info.monitorenter.gui.chart.errorbars.AErrorBarPolicyConfigurable
info.monitorenter.gui.chart.errorbars.ErrorBarPolicyRelative
All Implemented Interfaces:
IErrorBarPolicy<AErrorBarPolicyConfigurable>, IPointPainter<AErrorBarPolicyConfigurable>, ITracePainter<AErrorBarPolicyConfigurable>, PropertyChangeListener, Serializable, Comparable<AErrorBarPolicyConfigurable>, EventListener

public class ErrorBarPolicyRelative extends AErrorBarPolicyConfigurable
Configurable IErrorBarPolicy that adds a relative error (relative to the absolute values) to the points to render.

You should not use this if you have a small value range but very high values: The relative value will cause exteremely long lines (be much higher than the value range to display) and fold the trace to a minimum line.

Version:
$Revision: 1.23 $
Author:
Achim Westermann
See Also:
  • Constructor Details

    • ErrorBarPolicyRelative

      public ErrorBarPolicyRelative(double relativeError) throws IllegalArgumentException
      Creates an instance with the given relative errors.

      The relative error is related to the absolut x and y values to render. It has to be between 0.0 and 1.0.

      Parameters:
      relativeError - the relative error value between 0.0 and 1.0 for x and y dimension.
      Throws:
      IllegalArgumentException - if the argument is not between 0.0 and 1.0.
      See Also:
    • ErrorBarPolicyRelative

      public ErrorBarPolicyRelative(double relativeXError, double relativeYError) throws IllegalArgumentException
      Creates an instance with the given relative errors.

      The relative error is related to the absolut x and y values to render. It has to be between 0.0 and 1.0.

      Parameters:
      relativeXError - the relative x error value between 0.0 and 1.0.
      relativeYError - the relative y error value between 0.0 and 1.0.
      Throws:
      IllegalArgumentException - if the argument is not between 0.0 and 1.0.
  • Method Details