public class PlotPoint extends Object implements Serializable
PlotPoint
defines a plot point in terms of it's X- and Y
value. Also sets the lift-pen attribute, which, if true, will lift the pen
after having plot this point.Constructor and Description |
---|
PlotPoint()
Default constructor, does nothing.
|
PlotPoint(double x,
double y)
Default constructor, initializes the class x- and y values.
|
PlotPoint(double x,
double y,
boolean liftNow)
Initializes the class x- and y values and sets the lift attribute.
|
PlotPoint(double x,
double y,
double upper,
double lower)
Default constructor, initializes the class x- and y values.
|
PlotPoint(double x,
double y,
double left,
double right,
double upper,
double lower)
Default constructor, initializes the class x- and y values, including
stat error.
|
PlotPoint(double x,
double y,
double left,
double right,
double upper,
double lower,
double left_sys,
double right_sys,
double upper_sys,
double lower_sys)
Default constructor, initializes the class x- and y values, including
stat and sys errors alos includes errors
|
PlotPoint(PlotPoint pp)
Another constructor, initializes the class x- and y values.
|
Modifier and Type | Method and Description |
---|---|
PlotPoint |
getPoint()
returns x- and y values.
|
double |
getX()
Return the current X-value.
|
double |
getXleft()
Return the current left error on X-value.
|
double |
getXleftSys()
Return the current left systematical error on X-value.
|
double |
getXright()
Return the current right error on X-value.
|
double |
getXrightSys()
Return the current right systematical error on X-value.
|
double |
getY()
Return the current Y-value.
|
double |
getYlower()
Return the lower error on current Y-value.
|
double |
getYlowerSys()
Return the lower systematical error on current Y-value.
|
double |
getYupper()
Return the upper error on current Y-value.
|
double |
getYupperSys()
Return the upper systematical error on current Y-value.
|
boolean |
liftPen() |
void |
print()
print PlotPoint
|
void |
setLiftPen(boolean b)
Sets whether or not the drawing pen should be lifted after this point.
|
void |
setPoint(double x,
double y)
Sets x- and y values.
|
void |
setPoint(double x,
double y,
double upper,
double lower)
Sets x- and y values.
|
void |
setPoint(double x,
double y,
double left,
double right,
double upper,
double lower)
Sets x- and y values.
|
void |
setPoint(double x,
double y,
double left,
double right,
double upper,
double lower,
double left_sys,
double right_sys,
double upper_sys,
double lower_sys)
Sets x- and y values.
|
void |
setPoint(PlotPoint pp)
Sets x- and y values.
|
public PlotPoint()
public PlotPoint(double x, double y)
x
- x-value;y
- y-value;public PlotPoint(double x, double y, double upper, double lower)
x
- x-value;y
- y-value;upper
- upper errorlower
- lower errorpublic PlotPoint(double x, double y, double left, double right, double upper, double lower)
x
- x-value;y
- y-value;left
- left error on Xright
- right error on Xupper
- upper error on Ylower
- lower error on Ypublic PlotPoint(double x, double y, double left, double right, double upper, double lower, double left_sys, double right_sys, double upper_sys, double lower_sys)
x
- x-value;y
- y-value;left
- left error on Xright
- right error on Xupper
- upper error on Ylower
- lower error on Yleft_sys
- left system. error on Xright_sys
- right system. error on Xupper_sys
- upper system. error on Ylower_sys
- lower system. error on Ypublic PlotPoint(double x, double y, boolean liftNow)
x
- x-value;y
- y-value;liftNow
- true if the pen should lift at this pointpublic PlotPoint(PlotPoint pp)
pp
- PlotPoint instancepublic void setPoint(double x, double y)
x
- x-value;y
- y-value;public void setPoint(double x, double y, double upper, double lower)
x
- x-value;y
- y-value;upper
- upper errorlower
- lower errorpublic void setPoint(double x, double y, double left, double right, double upper, double lower)
x
- x-value;y
- y-value;left
- error on Xright
- right error on Yupper
- upper errorlower
- lower errorpublic void setPoint(double x, double y, double left, double right, double upper, double lower, double left_sys, double right_sys, double upper_sys, double lower_sys)
x
- x-value;y
- y-value;left
- error on Xright
- right error on Yupper
- upper errorlower
- lower errorleft_sys
- left system. error on Xright_sys
- right system. error on Xupper_sys
- upper system. error on Ylower_sys
- lower system. error on Ypublic void setPoint(PlotPoint pp)
pp
- PlotPoint instancepublic PlotPoint getPoint()
public double getX()
public double getY()
public double getXleft()
public double getXright()
public double getXleftSys()
public double getXrightSys()
public double getYupper()
public double getYlower()
public double getYupperSys()
public double getYlowerSys()
public void setLiftPen(boolean b)
b
- true if the pen should liftpublic boolean liftPen()
public void print()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics