|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.P3D
public class P3D
A container to hold data points in X,Y,Z and their extensions dX,dY,dZ. Use this class to draw a surface segment
Constructor Summary | |
---|---|
P3D()
Construct an empty container with a title |
|
P3D(java.lang.String title)
Construct an empty container with a title |
|
P3D(java.lang.String title,
java.lang.String sfile)
Construct a P3D from a file. |
Method Summary | |
---|---|
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 |
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 |
jplot.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. |
java.awt.Color |
getPenColor()
Get the color attribute |
int |
getPenWidth()
Get width of the lines |
java.lang.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(java.lang.String sfile)
Read P3D from a file. |
int |
readGZip(java.lang.String sfile)
Read P3D from a GZipped file. |
P3D |
readSerialized(java.lang.String name)
Read a P3D object from a serialized file |
int |
readZip(java.lang.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(jplot.DataArray3D data)
Set data in a form of DataArray |
void |
setPenColor(java.awt.Color c)
Sets the symbol color |
void |
setPenWidth(int w)
Set width of the lines |
void |
setTitle(java.lang.String title)
Set a new title |
int |
size()
Return the length of the data vector. |
void |
toFile(java.lang.String name)
Write a P3D to an external file. |
void |
toTable()
Print the P2D container to a Table in a separate Frame. |
void |
toTable(boolean format)
Print the P2D container to a Table in a separate Frame. |
int |
writeSerialized(java.lang.String name)
Write a P0D object to a serialized file |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P3D(java.lang.String title)
title
- New titlepublic P3D()
public P3D(java.lang.String title, java.lang.String sfile)
title
- Title of the containersfile
- File name with inputMethod Detail |
---|
public void setTitle(java.lang.String title)
title
- New Titlepublic java.lang.String getTitle()
public java.awt.Color getPenColor()
public void setPenColor(java.awt.Color c)
c
- Colorpublic void setPenWidth(int w)
w
- Width of the linespublic int getPenWidth()
public int read(java.lang.String sfile)
sfile
- File name with input
public int writeSerialized(java.lang.String name)
name
- serialized file name for output.
public P3D readSerialized(java.lang.String name)
name
- serialized file name for input.
public int readGZip(java.lang.String sfile)
sfile
- File name with input
public int readZip(java.lang.String sfile)
sfile
- File name with input
public void toFile(java.lang.String name)
name
- File name with outputpublic void print()
public P3D merge(P3D a)
a
- Container to be added
public void setDataArray(jplot.DataArray3D data)
data
- input datapublic jplot.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 array
public double getDX(int i)
i
- index of the array
public double getY(int i)
i
- index of the array
public double getDY(int i)
i
- index of the array
public double getZ(int i)
i
- index of the array
public double getDZ(int i)
i
- index of the array
public 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 toTable(boolean format)
format
- if false, numbers will not be formatted to scientific format
##.#####E00
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |