|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.GHPanel
jhplot.GHFrame
jhplot.HPlot3DS
public class HPlot3DS
Create a frame for showing 3D functions.
Field Summary | |
---|---|
boolean |
set
|
Constructor Summary | |
---|---|
HPlot3DS()
Construct a canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default" |
|
HPlot3DS(java.lang.String title)
Construct a canvas with a plot with the default parameters 600 by 400, and 10% space for the global title |
|
HPlot3DS(java.lang.String title,
int xs,
int ys)
Construct a canvas with a single plot/graph |
|
HPlot3DS(java.lang.String title,
int xs,
int ys,
int n1,
int n2)
Construct a canvas with plots/graphs |
|
HPlot3DS(java.lang.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 |
draw(java.lang.String function)
Draw a function |
double |
getFov()
|
void |
quit()
|
void |
setAxes(boolean bShowAxes)
|
void |
setAxesArrows(boolean showArrows)
Show or not small arrows on axes |
void |
setAxesColor(java.awt.Color c)
Set Color for axes |
void |
setAxesShow(boolean axisX,
boolean axisY,
boolean axisZ)
Show or not axes for X, Y, Z |
void |
setBackground(java.awt.Color c)
|
void |
setFill(boolean bfill)
|
void |
setFillColor(java.awt.Color c)
Set fill color |
void |
setFog(boolean fogEnabled)
|
void |
setFontValue(java.awt.Font font)
Set Font for axis numbers |
void |
setFov(double factor)
|
void |
setLabelColor(java.awt.Color color)
Set Color for the labels |
void |
setLabelFont(java.awt.Font font)
Set Font for the labels |
void |
setLineColor(java.awt.Color c)
Set line color |
void |
setNameX(java.lang.String name)
Set a name for X axis |
void |
setNameY(java.lang.String name)
Set a name for Y axis |
void |
setNameZ(java.lang.String name)
Set a name for Z axis |
void |
setRangeX(double min,
double max)
|
void |
setRangeY(double min,
double max)
|
void |
setRangeZ(double min,
double max)
|
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 HPlot3DS(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/graphs in yset
- set or not the graphpublic HPlot3DS(java.lang.String title, int xs, int ys)
title
- Title for the canvasxs
- size in xys
- size in ypublic HPlot3DS(java.lang.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 HPlot3DS(java.lang.String title)
title
- Titlepublic HPlot3DS()
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 setFillColor(java.awt.Color c)
c
- fill colorpublic void setLineColor(java.awt.Color c)
c
- line colorpublic void clear()
public void clear(int i1, int i2)
i1
- location of the graph in Xi2
- location of the graph in Ypublic void draw(java.lang.String function)
public void setRangeX(double min, double max)
public void setRangeY(double min, double max)
public void setRangeZ(double min, double max)
public void setFov(double factor)
public double getFov()
public void setBackground(java.awt.Color c)
public void setFog(boolean fogEnabled)
public void setAxes(boolean bShowAxes)
public void setFill(boolean bfill)
public void setNameX(java.lang.String name)
name
- Name of the label for Xpublic void setNameY(java.lang.String name)
name
- Name of the label for Ypublic void setNameZ(java.lang.String name)
name
- Name of the label for Ypublic void setLabelFont(java.awt.Font font)
font
- Fontpublic void setLabelColor(java.awt.Color color)
color
- Colorpublic void setAxesColor(java.awt.Color c)
color
- Colorpublic void setFontValue(java.awt.Font font)
font
- Fontpublic void setAxesShow(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()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |