|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.GHPanel
jhplot.HPlot3D
public class HPlot3D
This is a main canvas class to display histograms and functions in 3D. Extends GHPanel
Constructor Summary | |
---|---|
HPlot3D(java.lang.String title)
Create a HPlot3D canvas with the default size 400 x 600 |
|
HPlot3D(java.lang.String title,
int xsize,
int ysize)
Create a HPlot3D canvas |
Method Summary | |
---|---|
void |
close()
Same as distroy |
void |
distroy()
Distroy the canvas |
void |
draw(F2D f1)
Draw F2D function as a surface. |
void |
draw(F2D f1,
F2D f2)
Draw two F2D functions on the same plot. |
void |
draw(F2D h2,
H2D h1)
Draw F2D and H2D on the same plot. |
void |
draw(H2D h)
Draw H2D histogram |
void |
draw(H2D h1,
F2D h2)
Draw H2D histogram and F2D function on the same plot. |
void |
draw(H2D h1,
H2D h2)
Plot two H2D histograms on the same plot. |
void |
draw(P2D h)
Display P2D data holder with X,Y,Z values in 3D. |
void |
draw(P3D h)
Display P3D data holder with X,Y,Z values in 3D as surface. |
boolean |
isSurface()
Is the plot will be shown as a surface? |
void |
setBars()
Set bar type of plot |
void |
setBoxColor(java.awt.Color a)
Set color of the box |
void |
setColorFill(java.awt.Color a)
Set color of to fill histogram bars |
void |
setColorLines(java.awt.Color a)
Set color of the lines to draw histogram bars |
void |
setColorMode(int a)
Sets the color mode |
void |
setContour()
Set Contour type of plot |
void |
setDensity()
Set density type of plot |
void |
setDisplayXY(boolean a)
Display or not X and Y |
void |
setDisplayZ(boolean a)
Display or not title for Z |
void |
setFill(boolean fill)
Set fill color or not for histogram bars |
void |
setLabelColor(java.awt.Color a)
Set color of the label |
void |
setLabelFont(java.awt.Font a)
Set Font for the labels |
void |
setLabelOffset(double a)
Set label offset |
void |
setNameX(java.lang.String a)
Set a name for X axis |
void |
setNameY(java.lang.String a)
Set a name for Y axis |
void |
setRange(double Xmin,
double Xmax,
double Ymin,
double Ymax)
Set range fo the 3D plot |
void |
setRange(double Xmin,
double Xmax,
double Ymin,
double Ymax,
double Zmin,
double Zmax)
Set range fo the 3D plot |
void |
setRangeZ(double zmin,
double zmax)
Sets the z range of calculated surface vertices. |
void |
setRotation(boolean a)
Rotate or not HPlot3D |
void |
setSurface()
Set surface type of plot |
void |
setTicFont(java.awt.Font a)
Set tic fonts |
void |
setTicOffset(double a)
Set tic offset |
void |
update()
Update thje graphics |
void |
visible()
Show the canvas |
void |
visible(boolean vs)
Show or not the canvas |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HPlot3D(java.lang.String title, int xsize, int ysize)
title
- Title of the canvasxsize
- Size in Xysize
- Size in Ypublic HPlot3D(java.lang.String title)
title
- Title of the canvasMethod Detail |
---|
public void visible(boolean vs)
vs
- true if it is shownpublic void visible()
public void distroy()
public void close()
public boolean isSurface()
public void setNameX(java.lang.String a)
a
- Name of the label for Xpublic void setNameY(java.lang.String a)
a
- Name of the label for Ypublic void setLabelFont(java.awt.Font a)
a
- Fontpublic void setLabelColor(java.awt.Color a)
a
- Colorpublic void setColorLines(java.awt.Color a)
a
- Colorpublic void setColorFill(java.awt.Color a)
a
- Colorpublic void setFill(boolean fill)
fill
- if true, color will be set for the histogram barspublic void setTicFont(java.awt.Font a)
a
- Fontpublic void setDisplayXY(boolean a)
a
- true if it should be shownpublic void setDisplayZ(boolean a)
a
- true, if it is shownpublic void setRotation(boolean a)
a
- true if it should be rotatedpublic void setContour()
public void setDensity()
public void setSurface()
public void setBars()
public void setBoxColor(java.awt.Color a)
a
- Colorpublic void setColorMode(int a)
a
- color mode:
0: WIREFRAME
1: HIDDEN
2: SPECTRUM IN COLOR
3: GRAYSCALE
4: DUALSHADESpublic void update()
public void setTicOffset(double a)
a
- tic offsetpublic void setLabelOffset(double a)
a
- label offsetpublic void setRange(double Xmin, double Xmax, double Ymin, double Ymax)
Xmin
- Min in XXmax
- Max in XYmin
- Min in YYmax
- Max in Ypublic void setRange(double Xmin, double Xmax, double Ymin, double Ymax, double Zmin, double Zmax)
Xmin
- Min in XXmax
- Max in XYmin
- Min in YYmax
- Max in YZmin
- Min in ZZmax
- Max in Zpublic void setRangeZ(double zmin, double zmax)
zmin
- the minimum zzmax
- the maximum zpublic void draw(H2D h)
h
- H2D histogrampublic void draw(P2D h)
h
- P2D data holderpublic void draw(P3D h)
h
- P3D data holderpublic void draw(H2D h1, H2D h2)
h1
- first H2D histogramh2
- second H2D histogrampublic void draw(F2D f1)
f1
- F2D functionpublic void draw(F2D f1, F2D f2)
f1
- first F2D functionf2
- second F2D functionpublic void draw(H2D h1, F2D h2)
h1
- H2D histogramh2
- F2D functionpublic void draw(F2D h2, H2D h1)
h2
- F2D functionh1
- H2D histogram
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |