|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.gui.chart.errorbars.AErrorBarPolicyConfigurable
info.monitorenter.gui.chart.errorbars.ErrorBarPolicyAbsoluteSummation
public class ErrorBarPolicyAbsoluteSummation
Configurable
that adds an absolute error (relative to the absolute values) to the points
to render.
IErrorBarPolicy
| Field Summary |
|---|
| Fields inherited from class info.monitorenter.gui.chart.errorbars.AErrorBarPolicyConfigurable |
|---|
m_lastPoint, m_lastX, m_lastY, m_propertyChangeSupport |
| Fields inherited from interface info.monitorenter.gui.chart.IErrorBarPolicy |
|---|
PROPERTY_CONFIGURATION, PROPERTY_ERRORBARPAINTER |
| Constructor Summary | |
|---|---|
ErrorBarPolicyAbsoluteSummation(double xError,
double yError)
Creates an instance with the given absolute errors to add in x and y direction. |
|
| Method Summary | |
|---|---|
JComponent |
getCustomConfigurator()
Allows an implementation to return a JComponent that takes care of custom
configuration properties for the UI support of error bar policies. |
double |
getXError(double xValue)
Returns the relative x error (value domain) that is added to / subtracted from the values to display. |
double |
getYError(double yValue)
Returns the relative y error (value domain) that is added to / subtracted from the values to display. |
protected int |
internalGetNegativeXError(int xPixel,
int yPixel,
TracePoint2D original)
Internally compute the negative x error for the given point as a pixel value (not relative to the the origin value). |
protected int |
internalGetNegativeYError(int xPixel,
int yPixel,
TracePoint2D original)
Internally compute the negative y error for the given point as a pixel value (not relative to the the origin value). |
protected int |
internalGetPositiveXError(int xPixel,
int yPixel,
TracePoint2D original)
Internally compute the positive x error in pixel for the given point as an absolute value (not relative to the the origin value). |
protected int |
internalGetPositiveYError(int xPixel,
int yPixel,
TracePoint2D original)
Internally compute the positive y error in pixel for the given point as an absolute value (not relative to the the origin value). |
void |
setXError(double xError)
Sets the absolute x error to add to each error bar. |
void |
setYError(double yError)
Sets the absolute y error to add to each error bar. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorBarPolicyAbsoluteSummation(double xError,
double yError)
throws IllegalArgumentException
The absolute errors are added to / subtracted from the absolut x and y values to render.
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.
IllegalArgumentException - if arguments are < 0.| Method Detail |
|---|
public JComponent getCustomConfigurator()
IErrorBarPolicyJComponent that takes care of custom
configuration properties for the UI support of error bar policies.
Returns a JComponent that - stand alone - takes care of configuring custom
properties or null if nothing is required. This will be integrated in the error bar wizard UI
of jchart2d.
getCustomConfigurator in interface IErrorBarPolicygetCustomConfigurator in class AErrorBarPolicyConfigurableJComponent that - stand alone - takes care of configuring custom
properties or null if nothing is required.AErrorBarPolicyConfigurable.getCustomConfigurator()public final double getXError(double xValue)
IErrorBarPolicy
xValue - the absolute x value (not pixel) to get the error for.
IErrorBarPolicy.getXError(double)public final double getYError(double yValue)
IErrorBarPolicy
yValue - the absolute y value (not pixel) to get the error for.
IErrorBarPolicy.getYError(double)
protected int internalGetNegativeXError(int xPixel,
int yPixel,
TracePoint2D original)
AErrorBarPolicyConfigurable
internalGetNegativeXError in class AErrorBarPolicyConfigurablexPixel - the x value in pixel for the error to render.yPixel - the y value in pixel for the error to render.original - the original point, possibly useful for calculations.
AErrorBarPolicyConfigurable.internalGetNegativeXError(int,
int, info.monitorenter.gui.chart.TracePoint2D)
protected int internalGetNegativeYError(int xPixel,
int yPixel,
TracePoint2D original)
AErrorBarPolicyConfigurable
internalGetNegativeYError in class AErrorBarPolicyConfigurablexPixel - the x value in pixel for the error to render.yPixel - the y value in pixel for the error to render.original - the original point, possibly useful for calculations.
AErrorBarPolicyConfigurable.internalGetNegativeYError(int,
int, info.monitorenter.gui.chart.TracePoint2D)
protected int internalGetPositiveXError(int xPixel,
int yPixel,
TracePoint2D original)
AErrorBarPolicyConfigurable
internalGetPositiveXError in class AErrorBarPolicyConfigurablexPixel - the x value in pixel for the error to render.yPixel - the y value in pixel for the error to render.original - the original point, possibly useful for calculations.
AErrorBarPolicyConfigurable.internalGetPositiveXError(int,
int, info.monitorenter.gui.chart.TracePoint2D)
protected int internalGetPositiveYError(int xPixel,
int yPixel,
TracePoint2D original)
AErrorBarPolicyConfigurable
internalGetPositiveYError in class AErrorBarPolicyConfigurablexPixel - the x coordinate in pixel for the error to render.yPixel - the y coordinate in pixel for the error to render.original - the original point, possibly useful for calculations.
AErrorBarPolicyConfigurable.internalGetPositiveYError(int,
int, info.monitorenter.gui.chart.TracePoint2D)
public final void setXError(double xError)
throws IllegalArgumentException
The absolute error is added to the absolut x values to render. It has to be > 0.
xError - a positive value.
IllegalArgumentException - if the argument is < 0.
public final void setYError(double yError)
throws IllegalArgumentException
The absolute error is added to the absolut y values to render. It has to be > 0.
yError - a positive value.
IllegalArgumentException - if the argument is < 0.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||