public class JPoint extends Object implements Comparable
JPoint
defines a plot point in terms of it's X , Y and Z
value. Also sets the lift-pen attribute, which, if true, will lift the pen
after having plot this point. It has internal parameter which can be used for
sortingConstructor and Description |
---|
JPoint(double x,
double y,
double z)
Default constructor, initializes the class x- and y values.
|
JPoint(double x,
double y,
double z,
double d)
Default constructor, initializes the class x- and y values.
|
JPoint(double x,
double y,
double z,
double d,
Color c,
int s)
Default constructor, initializes the class x- and y values.
|
JPoint(JPoint pp)
Another constructor, initializes the class x- and y values.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
double |
getD()
Return the current distance to the observer
|
double |
getDX()
Return the current DX-value.
|
double |
getDY()
Return the current DY-value.
|
double |
getDZ()
Return the current DZ-value.
|
JPoint |
getPoint()
returns x- and y and z values.
|
Color |
getSymbolColor()
Get color.
|
int |
getSymbolSize()
Get symbol size
|
double |
getX()
Return the current X-value.
|
double |
getY()
Return the current Y-value.
|
double |
getZ()
Return the current Z-value.
|
void |
setD(double d)
Set the current distance value.
|
void |
setExt(double dx,
double dy,
double dz)
Sets extenstions
|
void |
setPoint(double x,
double y,
double z)
Sets x-, y and z values.
|
void |
setPoint(double x,
double y,
double z,
double d)
Sets x-, y and z values.
|
void |
setPoint(double x,
double y,
double z,
double d,
Color c,
int s) |
void |
setPoint(JPoint pp)
Sets x- and y and z values.
|
void |
setSymbolColor(Color c)
Sets color.
|
public JPoint(double x, double y, double z)
x
- x-value;y
- y-value;z
- z-value;public JPoint(double x, double y, double z, double d)
x
- x-value;y
- y-value;z
- z-value;d
- some attribute value;public JPoint(double x, double y, double z, double d, Color c, int s)
x
- x-value;y
- y-value;z
- z-value;d
- distance to the observerpublic JPoint(JPoint pp)
pp
- PlotPoint instancepublic void setPoint(double x, double y, double z)
x
- x-value;y
- y-value;z
- y-value;public void setPoint(double x, double y, double z, double d)
x
- x-value;y
- y-value;z
- y-value;d
- distance to the observerpublic void setExt(double dx, double dy, double dz)
dx
- x-value;dy
- y-value;dz
- y-value;public void setPoint(double x, double y, double z, double d, Color c, int s)
public void setPoint(JPoint pp)
pp
- PlotPoint instancepublic void setSymbolColor(Color c)
public Color getSymbolColor()
public int getSymbolSize()
public JPoint getPoint()
public double getX()
public double getDX()
public double getY()
public double getDY()
public double getZ()
public double getDZ()
public double getD()
public void setD(double d)
d
- distancepublic int compareTo(Object obj)
compareTo
in interface Comparable
Jas4pp 1.5 © Java Analysis Studio for Particle Physics