|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.P2D
public class P2D
A container to hold data points in X,Y,Z.
Constructor Summary | |
---|---|
P2D()
Construct an empty container with a title |
|
P2D(java.lang.String title)
Construct an empty container with a title |
|
P2D(java.lang.String title,
java.lang.String sfile)
Construct a P2D from a file. |
Method Summary | |
---|---|
void |
add(double x,
double y,
double z)
Adds values of a plot-point pair (X,Y,Z). |
void |
clear()
Clear the container |
P2D |
copy()
Get a copy of the current holder |
P2D |
copy(java.lang.String newtitle)
create an exact of the current holder |
void |
fill(double[] xa,
double[] ya,
double[] za)
Fill a P2D container from 3 arrays. |
double[] |
getArrayX()
Get array representing X-values |
double[] |
getArrayY()
Get array representing Y-values |
double[] |
getArrayZ()
Get array representing Z-values |
jplot.DataArray2D |
getDataArray()
Return a DataArray2D container. |
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 |
getSymbolColor()
Get color attribute |
int |
getSymbolSize()
Get size of the symbols |
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. |
P2D |
merge(P2D a)
Merge two P2D containers |
void |
print()
Print a P2D container on the screen |
void |
set(int i,
double x,
double y,
double z)
Sets the values of (x,y,z). |
void |
setDataArray(jplot.DataArray2D data)
Set data in a form of DataArray |
void |
setSymbolColor(java.awt.Color c)
Sets symbol color |
void |
setSymbolSize(int s)
Sets the symbol size |
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 P2D 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P2D(java.lang.String title)
title
- New titlepublic P2D()
public P2D(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 getSymbolColor()
public void setSymbolColor(java.awt.Color c)
c
- Colorpublic int getSymbolSize()
public void setSymbolSize(int s)
s
- symbol sizepublic void toFile(java.lang.String name)
name
- File name with outputpublic void print()
public P2D merge(P2D a)
a
- Container to be added
public void setDataArray(jplot.DataArray2D data)
data
- input datapublic jplot.DataArray2D getDataArray()
public void add(double x, double y, double z)
x
- X-value of the plot-pointy
- Y-value of the plot-pointz
- Z-value of the plot-pointpublic void fill(double[] xa, double[] ya, double[] za)
xa
- array with X valuesya
- array with Y valuesza
- array with Z valuespublic void set(int i, double x, double y, double z)
i
- index of the plot-pointx
- x-value of the plot-pointy
- y-value of the plot-pointz
- z-value of the plot-pointpublic int size()
public P2D copy()
public P2D copy(java.lang.String newtitle)
newtitle
- new titlepublic double[] getArrayX()
public double[] getArrayY()
public double[] getArrayZ()
public double getX(int i)
i
- index of the array
public double getY(int i)
i
- index of the array
public double getZ(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 |