info.monitorenter.gui.chart.errorbars
Class ErrorBarPixel

java.lang.Object
  extended by info.monitorenter.gui.chart.errorbars.ErrorBarPixel
All Implemented Interfaces:
IErrorBarPixel, Serializable

public class ErrorBarPixel
extends Object
implements IErrorBarPixel

Straight forward dumb data container implementation.

Version:
$Revision: 1.4 $
Author:
Achim Westermann
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface info.monitorenter.gui.chart.IErrorBarPixel
ERROR_PIXEL_NONE
 
Constructor Summary
ErrorBarPixel(ITrace2D trace)
          Creates an instance backed by the given trace.
 
Method Summary
 void clear()
          Convenience method for clearing this error bar making it available for new configuration.
 int getNegativeXErrorPixel()
          Returns the negative error (positive value) in X dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.
 int getNegativeYErrorPixel()
          Returns the negative error (positive value) in Y dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.
 int getPositiveXErrorPixel()
          Returns the positive error in X dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.
 int getPositiveYErrorPixel()
          Returns the positive error in Y dimension as a pixel value orIErrorBarPixel.ERROR_PIXEL_NONE.
 ITrace2D getTrace()
          Returns the corresponding trace for this error bar.
protected  void setNegativeXErrorPixel(int negativeXError)
          Intended for AErrorBarPolicyConfigurable only.
protected  void setNegativeYErrorPixel(int negativeYError)
          Intended for AErrorBarPolicyConfigurable only.
protected  void setPositiveXErrorPixel(int positiveXError)
          Intended for AErrorBarPolicyConfigurable only.
protected  void setPositiveYErrorPixel(int positiveYError)
          Intended for AErrorBarPolicyConfigurable only.
protected  void setTrace(ITrace2D trace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorBarPixel

public ErrorBarPixel(ITrace2D trace)
Creates an instance backed by the given trace.

Parameters:
trace - required for transformation.
See Also:
setTrace(ITrace2D)
Method Detail

clear

public void clear()
Convenience method for clearing this error bar making it available for new configuration.

All errors are set to IErrorBarPixel.ERROR_PIXEL_NONE afterwards.


getNegativeXErrorPixel

public int getNegativeXErrorPixel()
Description copied from interface: IErrorBarPixel
Returns the negative error (positive value) in X dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.

Specified by:
getNegativeXErrorPixel in interface IErrorBarPixel
Returns:
the negative error in X dimension or IErrorBarPixel.ERROR_PIXEL_NONE.
See Also:
IErrorBarPixel.getNegativeXErrorPixel()

getNegativeYErrorPixel

public int getNegativeYErrorPixel()
Description copied from interface: IErrorBarPixel
Returns the negative error (positive value) in Y dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.

Specified by:
getNegativeYErrorPixel in interface IErrorBarPixel
Returns:
the negative error in Y dimension or IErrorBarPixel.ERROR_PIXEL_NONE.
See Also:
IErrorBarPixel.getNegativeYErrorPixel()

getPositiveXErrorPixel

public int getPositiveXErrorPixel()
Description copied from interface: IErrorBarPixel
Returns the positive error in X dimension as a pixel value or IErrorBarPixel.ERROR_PIXEL_NONE.

Specified by:
getPositiveXErrorPixel in interface IErrorBarPixel
Returns:
the positive error in X dimension or IErrorBarPixel.ERROR_PIXEL_NONE.
See Also:
IErrorBarPixel.getPositiveXErrorPixel()

getPositiveYErrorPixel

public int getPositiveYErrorPixel()
Description copied from interface: IErrorBarPixel
Returns the positive error in Y dimension as a pixel value orIErrorBarPixel.ERROR_PIXEL_NONE.

Specified by:
getPositiveYErrorPixel in interface IErrorBarPixel
Returns:
the positive error in Y dimension or IErrorBarPixel.ERROR_PIXEL_NONE.
See Also:
IErrorBarPixel.getPositiveYErrorPixel()

getTrace

public final ITrace2D getTrace()
Description copied from interface: IErrorBarPixel
Returns the corresponding trace for this error bar.

Specified by:
getTrace in interface IErrorBarPixel
Returns:
the corresponding trace for this error bar.
See Also:
IErrorBarPixel.getTrace()

setNegativeXErrorPixel

protected final void setNegativeXErrorPixel(int negativeXError)
Intended for AErrorBarPolicyConfigurable only.

Parameters:
negativeXError - The negativeXError in pixel to set.

setNegativeYErrorPixel

protected final void setNegativeYErrorPixel(int negativeYError)
Intended for AErrorBarPolicyConfigurable only.

Parameters:
negativeYError - The negativeYError in pixel to set.

setPositiveXErrorPixel

protected final void setPositiveXErrorPixel(int positiveXError)
Intended for AErrorBarPolicyConfigurable only.

Parameters:
positiveXError - The positiveXError in pixel to set.

setPositiveYErrorPixel

protected final void setPositiveYErrorPixel(int positiveYError)
Intended for AErrorBarPolicyConfigurable only.

Parameters:
positiveYError - The positiveYError in pixel to set.

setTrace

protected final void setTrace(ITrace2D trace)
Parameters:
trace - The trace to set.


Copyright © 2001 - 2007 LGPL, All Rights Footloose.