|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.GHPanel
jhplot.GHFrame
jhplot.HPlot3D
public class HPlot3D
Create a canvas to show objects in 3D. Use it for H2D,F2D,P2D objects.
Field Summary | |
---|---|
boolean |
set
|
Constructor Summary | |
---|---|
HPlot3D()
Construct a HGraph canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default" |
|
HPlot3D(java.lang.String title)
Construct a HGraph canvas with a plot with the default parameters 600 by 400, and 10% space for the global title |
|
HPlot3D(java.lang.String title,
int xs,
int ys)
Construct a HView2D canvas with a single plot/graph |
|
HPlot3D(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2)
Create a canvas to display histograms in 3D |
|
HPlot3D(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create a canvas to display histograms in 3D |
Method Summary | |
---|---|
void |
clear()
Clear the current graph including graph settings. |
void |
clear(int i1,
int i2)
Clear the graph characterized by an index in X and Y. |
void |
clearAll()
Clear all graphs from data and settings. |
void |
close()
Close the canvas (and dispose all components) Note: a memory leak is found - no time to study it. |
void |
doc()
Show online documentation. |
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. |
void |
draw(java.lang.String function)
Draw a function |
java.awt.Color |
getAxesFontColor()
Color for tic labels |
java.awt.Font |
getAxisFont()
Get font for axes |
void |
getColorMode()
Gets the color mode |
double |
getDistance()
Get the distance |
double |
getElevationAngle()
Get the angle |
java.awt.Color |
getFrameColor()
Get color of the frame |
double |
getLabelOffset(int axes)
Get offset for labels on X |
int |
getPenWidthAxes()
Gets the pen width to draw axes |
double |
getRotationAngle()
Get the rotation angle |
double |
getScaling()
Get the scaling |
boolean |
isSurface()
Is the plot will be shown as a surface? |
void |
quit()
exit the frame and clear all components |
void |
setAutoRange()
Set autorange in X,Y,Z at the same time for the current plot |
void |
setAutoRange(boolean b)
Set autorange in X,Y,Z at the same time |
void |
setAxesFontColor(java.awt.Color fontColorAxes)
Get color for tic labels |
void |
setAxisFont(java.awt.Font fontAxis)
Sets font for axes |
void |
setBars()
Set bar type of plot |
void |
setBoxColor(java.awt.Color a)
Set color of the box |
void |
setBoxed(boolean boxed)
Set boxed frame |
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 |
setDistance(double distance)
Set distance to the object |
void |
setElevationAngle(double angle)
Set the elevation angle |
void |
setFill(boolean fill)
Set fill color or not for histogram bars |
void |
setFrameColor(java.awt.Color a)
Set color of the frame |
void |
setLabelColor(java.awt.Color a)
Set color of the label |
void |
setLabelFont(java.awt.Font a)
Set Font for the labels |
void |
setLabelFontColor(java.awt.Color fontColorLabel)
Set color for labels |
void |
setLabelOffsetX(double a)
Set label offset on X |
void |
setLabelOffsetY(double a)
Set label offset on Y |
void |
setLabelOffsetZ(double a)
Set label offset on Z |
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 |
setNameZ(java.lang.String a)
Set a name for Z axis |
void |
setPenWidthAxes(int w)
Set line width to draw axes |
void |
setRange(double Xmin,
double Xmax,
double Ymin,
double Ymax)
Set range for the 3D plot |
void |
setRange(double Xmin,
double Xmax,
double Ymin,
double Ymax,
double Zmin,
double Zmax)
Set range for the 3D plot |
void |
setRangeZ(double zmin,
double zmax)
Sets the z range of calculated surface vertices. |
void |
setRotationAngle(double angle)
Get the rotation angle |
void |
setScaling(double scale)
Set the scaling |
void |
setSurface()
Set surface type of plot |
void |
setTicFont(java.awt.Font a)
Set font for the ticks |
void |
setTicOffset(double a)
Set tick offset |
void |
update()
Update the graphics |
void |
update(int n1,
int n2)
Refresh only a particular plot |
void |
updateAll()
Refresh all the plots on the same canvas HPLOT |
void |
updateData()
Update data on the plot |
void |
updateData(int n1,
int n2)
Update data on the plot |
void |
visible()
Show the canvas |
void |
visible(boolean vs)
Set the canvas frame visible or not |
Methods inherited from class jhplot.GHFrame |
---|
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean set
Constructor Detail |
---|
public HPlot3D(java.lang.String title, int xsize, int ysize, int n1, int n2, boolean set)
title
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- number of plots in ypublic HPlot3D(java.lang.String title, int xsize, int ysize, int n1, int n2)
title
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- number of plots/graphs in yset
- set or not the graphpublic HPlot3D(java.lang.String title, int xs, int ys)
title
- Title for the canvasxs
- size in xys
- size in ypublic HPlot3D(java.lang.String title)
title
- Titlepublic HPlot3D()
Method Detail |
---|
public void setDistance(double distance)
distance
- distancepublic double getDistance()
public void setScaling(double scale)
scale
- public double getScaling()
public void setRotationAngle(double angle)
angle
- anglepublic double getRotationAngle()
public void setElevationAngle(double angle)
angle
- elevation anglepublic double getElevationAngle()
public void setLabelFontColor(java.awt.Color fontColorLabel)
fontColorLabel
- public void update(int n1, int n2)
n1
- the location of the plot in xn2
- the location of the plot in ypublic void updateData(int n1, int n2)
n1
- the location of the plot in xn2
- the location of the plot in ypublic void updateData()
public double getLabelOffset(int axes)
public void updateAll()
public void clear()
public void clear(int i1, int i2)
i1
- location of the graph in Xi2
- location of the graph in Ypublic void setPenWidthAxes(int w)
w
- public int getPenWidthAxes()
public void draw(java.lang.String function)
public void clearAll()
public void quit()
public void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic void visible()
public boolean isSurface()
public void setNameX(java.lang.String a)
a
- Name of the label for X axispublic void setNameY(java.lang.String a)
a
- Name of the label for Y axispublic void setNameZ(java.lang.String a)
a
- Name of the label for Z axispublic void setLabelFont(java.awt.Font a)
a
- Fontpublic void setAxisFont(java.awt.Font fontAxis)
fontAxis
- fontpublic java.awt.Font getAxisFont()
public 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 setContour()
public void setDensity()
public void setSurface()
public void setBars()
public void setBoxColor(java.awt.Color a)
a
- Colorpublic void setFrameColor(java.awt.Color a)
a
- Colorpublic void setBoxed(boolean boxed)
boxed
- true if it is boxedpublic java.awt.Color getAxesFontColor()
public void setAxesFontColor(java.awt.Color fontColorAxes)
fontColorAxes
- colorpublic java.awt.Color getFrameColor()
public void setColorMode(int a)
a
- color mode: 0: WIREFRAME 1: HIDDEN 2: SPECTRUM IN COLOR 3:
GRAYSCALE 4: DUALSHADESpublic void getColorMode()
public void update()
public void setTicOffset(double a)
a
- tick offsetpublic void setLabelOffsetX(double a)
a
- label offsetpublic void setLabelOffsetY(double a)
a
- label offsetpublic void setLabelOffsetZ(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 setAutoRange(boolean b)
b
- if true, sets autorangepublic void setAutoRange()
public void draw(P3D h)
h
- P3D data holder.public 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 histogrampublic void close()
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |