|
|||||||||
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,
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 |
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 2 H2D histograms on the same plot |
void |
setBoxColor(java.awt.Color a)
Set color of the box |
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 |
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 |
setRanges(double X1,
double X2,
double Y1,
double Y2)
Set range fo the 3D plot |
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(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 YMethod Detail |
---|
public void visible(boolean vs)
vs
- true if it is shownpublic void distroy()
public void close()
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
- public 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 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 setRanges(double X1, double X2, double Y1, double Y2)
X1
- Min in XX2
- Max in XY1
- Min in YY2
- Max in Ypublic void draw(H2D h)
h
- H2D histogrampublic 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 |