public class HView3D
extends jhplot.gui.GHFrame
| Modifier and Type | Field and Description |
|---|---|
boolean |
set |
| Constructor and Description |
|---|
HView3D()
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title "Default"
|
HView3D(String title)
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title
|
HView3D(String title,
int xs,
int ys)
Construct a HView3D canvas with a single plot/graph
|
HView3D(String title,
int xs,
int ys,
boolean set)
Construct a HView3D canvas with a single plot/graph
|
HView3D(String title,
int xs,
int ys,
int n1,
int n2)
Construct a HView3D canvas with plots/graphs
|
HView3D(String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create a HView3D canvas with several plots showing 3D shapes
|
| Modifier and Type | Method and Description |
|---|---|
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(Object3d object)
Draw an object.
|
Model3d |
getModel()
Get the current model to build a object.
|
void |
quit() |
void |
setMove(double x,
double y,
double z)
Move the current plot
|
void |
setRotate(double x,
double y,
double z)
Rotate the current plot
|
void |
setZoomIn(double zoom)
Zoom in the current plot.
|
void |
setZoomOut(double zoom)
Zoom out the current plot.
|
void |
update()
Just update the current plot selected using cd() method
|
void |
update(int n1,
int n2)
Refresh only a particular plot
|
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
|
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrameaddComp, componentResized, convertSVG, convertSVG, disableDoubleBuffering, enableDoubleBuffering, export, getCanvasPanel, getMarginBackground, getMarginPanelBottom, getMarginPanelCenter, getMarginPanelLeft, getMarginPanelRight, getMarginPanelTop, getMarginSizeBottom, getMarginSizeLeft, getMarginSizeRight, getMarginSizeTop, getSizeX, getSizeY, getTextBottom, getTextBottomColor, getTextBottomColorBack, getTextBottomFont, getTextLeft, getTextLeftColor, getTextLeftColorBack, getTextLeftFont, getTextPosBottomX, getTextPosBottomY, getTextPosLeftX, getTextPosLeftY, getTextPosRightX, getTextPosRightY, getTextPosTopX, getTextPosTopY, getTextRight, getTextRightColor, getTextRightColorBack, getTextRightFont, getTextRotationBottom, getTextRotationLeft, getTextRotationRight, getTextRotationTop, getTextTop, getTextTopColor, getTextTopColorBack, getTextTopFont, isBorderShown, printGraph, resetMargins, setGTitle, setGTitle, setGTitle, setGTitle, setGTitle, setMarginBackground, setMarginSizeBottom, setMarginSizeLeft, setMarginSizeRight, setMarginSizeTop, setSizePanel, setTextBottom, setTextBottom, setTextBottom, setTextBottom, setTextBottomColorBack, setTextLeft, setTextLeft, setTextLeft, setTextLeft, setTextLeftColorBack, setTextPosBottomX, setTextPosBottomY, setTextPosLeftX, setTextPosLeftY, setTextPosRightX, setTextPosRightY, setTextPosTopX, setTextPosTopY, setTextRight, setTextRight, setTextRight, setTextRight, setTextRightColorBack, setTextRotationBottom, setTextRotationLeft, setTextRotationRight, setTextRotationTop, setTextTop, setTextTop, setTextTop, setTextTopColorBack, showBorderspublic HView3D(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 HView3D(String title, int xs, int ys)
title - Title for the canvasxs - size in xys - size in ypublic HView3D(String title, int xs, int ys, boolean set)
title - Title for the canvasxs - size in xys - size in yset - set or not the graph (boolean)public HView3D(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 HView3D(String title)
title - Titlepublic HView3D()
public void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void visible()
public void destroy()
public void update(int n1,
int n2)
n1 - the location of the plot in xn2 - the location of the plot in ypublic void update()
public void updateAll()
public void setZoomIn(double zoom)
zoom - current zoom. =1 : no zoom, =1.1 : 10% zoompublic void setZoomOut(double zoom)
zoom - current zoom. Set to 1 for no zoom. 1.1 means 10% zoom etc.public void setMove(double x,
double y,
double z)
x - in Xy - in Yz - in Zpublic void setRotate(double x,
double y,
double z)
x - around Xy - around Yz - around Zpublic Model3d getModel()
public void draw(Object3d object)
object - Object to be drawnpublic void clear()
public void clear(int i1,
int i2)
i1 - location of the graph in Xi2 - location of the graph in Ypublic void clearAll()
public void close()
public void quit()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG