public class P3D extends Plottable implements Serializable
Constructor and Description |
---|
P3D()
Construct an empty container
|
P3D(String title)
Construct an empty container with a title
|
P3D(String title,
String sfile)
Construct a P3D from a file.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double dx,
double y,
double dy,
double z,
double dz)
Adds values of a plot-point pair (X,dX,Y,dY,Z,dZ).
|
void |
clear()
Clear the container
|
void |
doc()
Show online documentation.
|
double[] |
getArrayX()
Get array representing X-values
|
double[] |
getArrayY()
Get array representing Y-values
|
double[] |
getArrayZ()
Get array representing Z-values
|
P3D |
getCopy()
get a copy of the current holder
|
DataArray3D |
getDataArray()
Return a DataArray3D container.
|
double |
getDX(int i)
Return a specific dX-value.
|
double |
getDY(int i)
Return a specific dY-value.
|
double |
getDZ(int i)
Return a specific dZ-value.
|
double |
getMax(int axis)
Returns the maximum value in the range.
|
double |
getMin(int axis)
Returns the minimum value in the range.
|
Color |
getPenColor()
Get the color attribute
|
int |
getPenWidth()
Get width of the lines
|
String |
getTitle()
Get a new title
|
double |
getX(int i)
Return a specific X-value.
|
double |
getY(int i)
Return a specific Y-value.
|
double |
getZ(int i)
Return a specific Z-value.
|
double |
meanX()
Returns the mean value in X.
|
double |
meanY()
Returns the mean value in Y.
|
double |
meanZ()
Returns the mean value in Z.
|
P3D |
merge(P3D a)
Merge two P3D containers
|
void |
print()
Print a P3D container on the screen
|
int |
read(String sfile)
Read P3D from a file.
|
int |
readGZip(String sfile)
Read P3D from a GZipped file.
|
P3D |
readSerialized(String name)
Read a P3D object from a serialized file
|
int |
readZip(String sfile)
Read P3D from a Zipped file.
|
void |
set(int i,
double x,
double dx,
double y,
double dy,
double z,
double dz)
Sets the values of (x,dx,y,dy,z,dz).
|
void |
setDataArray(DataArray3D data)
Set data in a form of DataArray
|
void |
setPenColor(Color c)
Sets the symbol color
|
void |
setPenWidth(int w)
Set width of the lines
|
void |
setTitle(String title)
Set a new title
|
int |
size()
Return the length of the data vector.
|
void |
toFile(String name)
Write a P3D to an external file.
|
void |
toTable()
Print the P2D container to a Table in a separate Frame.
|
int |
writeSerialized(String name)
Write a P0D object to a serialized file
|
public P3D()
public P3D(String title)
title
- New titlepublic void setTitle(String title)
public String getTitle()
public Color getPenColor()
public void setPenColor(Color c)
c
- Colorpublic void setPenWidth(int w)
w
- Width of the linespublic int getPenWidth()
public int read(String sfile)
sfile
- File name with inputpublic int writeSerialized(String name)
name
- serialized file name for output.public P3D readSerialized(String name)
name
- serialized file name for input.public int readGZip(String sfile)
sfile
- File name with inputpublic int readZip(String sfile)
sfile
- File name with inputpublic void toFile(String name)
name
- File name with outputpublic void print()
public P3D merge(P3D a)
a
- Container to be addedpublic void setDataArray(DataArray3D data)
data
- input datapublic DataArray3D getDataArray()
public void add(double x, double dx, double y, double dy, double z, double dz)
x
- X-value of the plot-pointdx
- extent in Xy
- Y-value of the plot-pointdy
- extent in Yz
- Z-value of the plot-pointdz
- extent in Zpublic void set(int i, double x, double dx, double y, double dy, double z, double dz)
i
- index of the plot-pointx
- X-value of the plot-pointdx
- extent in Xy
- Y-value of the plot-pointdy
- extent in Yz
- Z-value of the plot-pointdz
- extent in Zpublic int size()
public P3D getCopy()
public double[] getArrayX()
public double[] getArrayY()
public double[] getArrayZ()
public double getX(int i)
i
- index of the arraypublic double getDX(int i)
i
- index of the arraypublic double getY(int i)
i
- index of the arraypublic double getDY(int i)
i
- index of the arraypublic double getZ(int i)
i
- index of the arraypublic double getDZ(int i)
i
- index of the arraypublic double getMax(int axis)
axis
- defines to which axis this function applies. axis=0 - X,
axis=1 - Y, axis=2 - Z,public double getMin(int axis)
axis
- defines to which axis this function applies.public double meanX()
public double meanY()
public double meanZ()
public void clear()
public void toTable()
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics