|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.GHPanel
jhplot.GHFrame
jhplot.HPlot3DP
public class HPlot3DP
Create a frame for showing 3D parametric functions.
Field Summary | |
---|---|
boolean |
set
|
Constructor Summary | |
---|---|
HPlot3DP()
Construct a canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default" |
|
HPlot3DP(String title)
Construct a canvas with a plot with the default parameters 600 by 400, and 10% space for the global title |
|
HPlot3DP(String title,
int xs,
int ys)
Construct a canvas with a single plot/graph |
|
HPlot3DP(String title,
int xs,
int ys,
int n1,
int n2)
Construct a canvas with plots/graphs |
|
HPlot3DP(String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create a canvas with several plots showing 3D function |
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 |
destroy()
Destroy the canvas frame |
void |
doc()
Show online documentation. |
void |
draw(FPR fpr)
Draw a parametric function |
double |
getCameraPosition()
Get camera position. |
double[] |
getEyePosition()
Get a vector with eye position |
double |
getFov()
Get field of vision |
void |
quit()
|
void |
setAxes(boolean bShowAxes)
Set all axes or not |
void |
setAxes(boolean axisX,
boolean axisY,
boolean axisZ)
Show or not axes for X, Y, Z |
void |
setAxesArrows(boolean showArrows)
Show or not small arrows on axes |
void |
setAxesColor(Color c)
Set Color for axes |
void |
setAxisArrows(boolean showArrows)
Set or not arrows for axis |
void |
setBackgColor(Color c)
Set background for current pad |
void |
setCameraPosition(double d)
Set camera position |
void |
setEyePosition(double x,
double y,
double z)
Set position oy eye |
void |
setFog(boolean fogEnabled)
Set fog for objects |
void |
setFontValue(Font font)
Set Font for axis numbers |
void |
setFov(double factor)
Set field of vision |
void |
setLabelColor(Color color)
Set Color for the labels |
void |
setLabelFont(Font font)
Set Font for the labels |
void |
setNameX(String name)
Set a name for X axis |
void |
setNameY(String name)
Set a name for Y axis |
void |
setNameZ(String name)
Set a name for Z axis |
void |
setRangeX(double min,
double max)
Set range for X axis |
void |
setRangeY(double min,
double max)
Set range for Y |
void |
setRangeZ(double min,
double max)
Set range for Z |
void |
update()
Just update the current plot selected using cd() method |
void |
updateAll()
Refresh all the plots on the same canvas HPLOT |
void |
visible()
Set the canvas frame visible |
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 HPlot3DP(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/graphs in yset
- set or not the graphpublic HPlot3DP(String title, int xs, int ys)
title
- Title for the canvasxs
- size in xys
- size in ypublic HPlot3DP(String title, int xs, int ys, int n1, int n2)
title
- Title for the canvasxs
- size in xys
- size in yn1
- number of plots/graphs in xn2
- number of plots/graphs in ypublic HPlot3DP(String title)
title
- Titlepublic HPlot3DP()
Method Detail |
---|
public void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic void visible()
public void destroy()
public void update()
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 draw(FPR fpr)
input
- parametric functionpublic void setRangeX(double min, double max)
min
- min valuemax
- max valuepublic void setRangeY(double min, double max)
min
- min valuemax
- max valuepublic void setRangeZ(double min, double max)
min
- min valuemax
- max valuepublic void setFov(double factor)
factor
- factorpublic double getFov()
public void setBackgColor(Color c)
c
- colorpublic void setEyePosition(double x, double y, double z)
x
- y
- z
- public void setAxisArrows(boolean showArrows)
showArrows
- true if shownpublic double[] getEyePosition()
public double getCameraPosition()
public void setCameraPosition(double d)
d
- set camera positionpublic void setFog(boolean fogEnabled)
fogEnabled
- public void setAxes(boolean bShowAxes)
bShowAxes
- true if shownpublic void setNameX(String name)
name
- Name of the label for Xpublic void setNameY(String name)
name
- Name of the label for Ypublic void setNameZ(String name)
name
- Name of the label for Ypublic void setLabelFont(Font font)
font
- Fontpublic void setLabelColor(Color color)
color
- Colorpublic void setAxesColor(Color c)
color
- Colorpublic void setFontValue(Font font)
font
- Fontpublic void setAxes(boolean axisX, boolean axisY, boolean axisZ)
axisX
- axisY
- axisZ
- public void setAxesArrows(boolean showArrows)
showArrows
- set true if arrows are shown (default)public void clearAll()
public void close()
public void quit()
public void doc()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |