public class HPlotXYZ
extends jhplot.gui.GHFrame
| Modifier and Type | Field and Description |
|---|---|
boolean |
set |
| Constructor and Description |
|---|
HPlotXYZ()
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title "Default"
|
HPlotXYZ(String title)
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title
|
HPlotXYZ(String title,
int xs,
int ys)
Construct a HView2D canvas with a single plot/graph
|
HPlotXYZ(String title,
int xsize,
int ysize,
int n1,
int n2)
Create a canvas to display histograms in 3D
|
HPlotXYZ(String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create a canvas to display histograms in 3D
|
| Modifier and Type | Method and Description |
|---|---|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(org.jzy3d.plot3d.primitives.AbstractDrawable shape)
Add a object to the list
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(F2D f)
Add a F2D function (a function with 2 arguments, x and y).
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(F2D f,
double xmin,
double xmax,
double ymin,
double ymax)
Add a F2D function (a function with 2 arguments, x and y).
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(F2D h1,
int xsteps,
int ysteps,
double xmin,
double xmax,
double ymin,
double ymax)
Add a F2D function (a function with 2 arguments, x and y).
|
void |
add(H2D h2d)
Show H2D histogram as bars
|
void |
add(P2D h1)
Add a container with X,Y.Z values to be shown.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(P2D h1,
Color color)
Add a container with X,Y.Z values to be shown.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(P2D h1,
double pointSize)
Add a container with X,Y.Z values to be shown.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
add(P2D h1,
double penSize,
Color color)
Draw X,Y.Z values in 3D
|
void |
addAsBars(H2D h2d)
Add a H2D histogram as bars.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
addAsSurface(H2D h2d)
Add a H2D histogram.
|
void |
addBar(double x,
double y,
double z,
double height,
double radius)
Build a bar as a cylinder in 3D and add to the list of shapes on the
current pad.
|
void |
addDisk(double x,
double y,
double z,
double radiusInner,
double radiusOuter,
int slices,
int loops)
Add a sphere to the current canvas.
|
void |
addFlatLine(float[] x,
float[] y,
double depth)
Add a flat line to the current pad.
|
void |
addLight(double x,
double y,
double z,
Color AmbiantColor,
Color DiffuseColor,
Color SpecularColor)
Add light to the scene.
|
void |
addParallelepiped(float xmin,
float xmax,
float ymin,
float ymax,
float zmin,
float zmax)
Add parallelepiped to the current canvas.
|
void |
addPoint(double x,
double y,
double z,
double width)
Add a point to the list of shapes on the current pad.
|
void |
addPolygon(P2D p2d)
Add a flat line to the current pad.
|
void |
addSphere(double x,
double y,
double z,
double radius,
double height,
int slices,
int stacks)
Add a sphere to the current canvas.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
addText(String text,
double[] pos,
Color co)
Add a text to the canvas.
|
void |
addTube(double x,
double y,
double z,
double radiusBottom,
double radiusTop,
double height,
int slices,
int stacks)
Add a tube to the current canvas.
|
org.jzy3d.chart.controllers.thread.camera.CameraThreadController |
animate()
Start animation of the current canvas.
|
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.
|
void |
distroy()
Remove the canvas frame
|
void |
doc()
Show online documentation.
|
void |
draw(org.jzy3d.plot3d.primitives.AbstractDrawable[] shapes)
Draw a list of shapes on the current canvas
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
draw(H2D h2d)
Draw a H2D histogram.
|
org.jzy3d.plot3d.primitives.AbstractDrawable |
draw(P2D h1,
double penSize,
Color color)
Draw X,Y.Z values in 3D using variable colors.
|
void |
export(String file)
Fast export of the canvas to an image file (depends on the extension,
i.e.
|
org.jzy3d.chart.Chart |
getChart()
Get the current canvas chart.
|
int |
getContourLevels()
Get number of levels for contour plots.
|
boolean |
getContourMesh3D()
Get to contour mesh style from 3D plots.
|
int |
getFontAxisLabels()
Get fonts for axis labels in terms of GLUT.BITMAP fonts.
|
int |
getFontAxisTicks()
Get fonts for axis ticks in terms of GLUT.BITMAP fonts.
|
List<org.jzy3d.plot3d.primitives.AbstractDrawable> |
getShapeList()
Get list of shapes plotted on the current pad given by the cd() method.
|
org.jzy3d.plot3d.rendering.view.View |
getView()
Get current view of the plotted object.
|
void |
quit()
exit the frame and clear all components
|
void |
setAxesBox(boolean isbox)
The box can be turned on/off for the current pad.
|
void |
setAxesLabel(int axis,
boolean shown)
Show or not label on axes.
|
void |
setAxesLabelFont(Font font,
org.jzy3d.colors.Color color)
Set font and color for axis labels.
|
void |
setAxisPenWidth(int pwidth)
Set line width to draw boxes and axis.
|
void |
setAxisTick(int axis,
boolean shown)
Show or not ticks on axes.
|
void |
setBackground(Color co)
Set background for the current pad.
|
void |
setColorFill(Color color)
Set fill color for the current object
|
void |
setColorSolid(boolean solid)
If you set true, color will be solid and no colorfull color map is used.
|
void |
setColorWireframe(Color color)
Set fill color for the current object
|
void |
setContourColor3D()
Set to contour color style to 3D plots.
|
void |
setContourColor3D(boolean contour)
Add (or not) contour color to 3D plot.
|
void |
setContourLevels(int nlevels)
Set number of levels for contour plots.
|
void |
setContourMesh3D()
Set to contour mesh style to 3D plots.
|
void |
setContourMesh3D(boolean contour)
Set (or not) contour mesh style to 3D plots.
|
void |
setFaceDisplayed(boolean face)
Set face shown or not
|
void |
setFontAxisTicks(int font)
Set fonts for tick labels in terms of GLUT.BITMAP fonts.
|
void |
setGridColor(Color co)
Set Grid color to the current pad
|
void |
setLegendBar()
Set a legend to a given surface.
|
void |
setNameX(String a)
Set a name for X axis
|
void |
setNameY(String a)
Set a name for Y axis
|
void |
setNameZ(String a)
Set a name for Z axis
|
void |
setRange(double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ)
Sets the range for the current plot
|
void |
setRotationAngle(double angle)
Get the rotation angle
|
void |
setScale(double scale)
Set the scaling for the current image box.
|
void |
setTickDecimal(int axis,
int dig)
Set decimal precision for a given axis.
|
void |
setTickDecimalAll(int dig)
Set decimal notation with a given number of digits for all ticks.
|
void |
setTickScientific(int axis,
int dig)
Set scientific notation with a given number of digits.
|
void |
setTickScientificAll(int dig)
Set scientific notation with a given number of digits for all ticks.
|
void |
setViewPoint(double x,
double y,
double z)
Set view point
|
void |
setWireframe(boolean wiredrame)
Set wireframe mode for the current object.
|
void |
setWireframeWidth(double width)
Set width of the line for wireframe
|
void |
update()
Update current pad.
|
void |
update(int n1,
int n2)
Refresh only a particular pad.
|
void |
updateAll()
Refresh all the plots on the same canvas.
|
void |
visible()
Show the canvas
|
void |
visible(boolean vs)
Set the canvas frame visible or not
|
void |
visible(int posX,
int posY)
Set the canvas frame visible.
|
void |
zoom(double scale)
Set the scaling for the axis of the current object.
|
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrameaddComp, componentResized, convertSVG, convertSVG, disableDoubleBuffering, enableDoubleBuffering, 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 HPlotXYZ(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 HPlotXYZ(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 HPlotXYZ(String title, int xs, int ys)
title - Title for the canvasxs - size in xys - size in ypublic HPlotXYZ(String title)
title - Titlepublic HPlotXYZ()
public void setRange(double minX,
double maxX,
double minY,
double maxY,
double minZ,
double maxZ)
minX - Min value in XmaxX - Max value in XminY - Min value in YmaxY - Max value in YminZ - Min value in ZmaxZ - Max value in Zpublic void setFontAxisTicks(int font)
font - font in terms GLUT.BITMAPpublic void setAxisPenWidth(int pwidth)
pwidth - with of the pen to draw boxes etc.public int getFontAxisTicks()
public int getFontAxisLabels()
public org.jzy3d.chart.controllers.thread.camera.CameraThreadController animate()
public void setColorFill(Color color)
color - to fill objectpublic void setColorWireframe(Color color)
color - for wireframepublic void setWireframe(boolean wiredrame)
wiredrame - true than no solid fill is used.public void setWireframeWidth(double width)
width - widthpublic void setColorSolid(boolean solid)
solid - apply a solid color to the current objectpublic org.jzy3d.plot3d.rendering.view.View getView()
public void setScale(double scale)
scale - scaling factor for the image.public void zoom(double scale)
scale - scaling factor for the objectpublic void setRotationAngle(double angle)
angle - anglepublic void setFaceDisplayed(boolean face)
face - true is displayed.public void setGridColor(Color co)
co - grid colorpublic void visible(int posX,
int posY)
posX - - the x-coordinate of the new location's top-left corner in
the parent's coordinate space;posY - - he y-coordinate of the new location's top-left corner in the
parent's coordinate spacepublic 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 distroy()
public void quit()
public void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void visible()
public void setNameX(String a)
a - Name of the label for X axispublic void setNameY(String a)
a - Name of the label for Y axispublic void setNameZ(String a)
a - Name of the label for Z axispublic void setAxesLabel(int axis,
boolean shown)
axis - axis: 0 for X, 1 for Y, 2 for Zshown - true then shown.public void setViewPoint(double x,
double y,
double z)
x - Xy - Yz - Zpublic void setAxesLabelFont(Font font, org.jzy3d.colors.Color color)
font - color - public void setContourMesh3D(boolean contour)
contour - set to true for a contour stylepublic void setContourColor3D(boolean contour)
contour - set to true for a contour color stylepublic void setContourLevels(int nlevels)
nlevels - number of levels for contour plots.public int getContourLevels()
public void setContourMesh3D()
public void setContourColor3D()
public boolean getContourMesh3D()
public void setAxisTick(int axis,
boolean shown)
axis - axis: 0 for X, 1 for Y, 2 for Zshown - true then shown.public void add(P2D h1)
h1 - public org.jzy3d.plot3d.primitives.AbstractDrawable add(P2D h1, Color color)
h1 - color - Color of this data.public org.jzy3d.plot3d.primitives.AbstractDrawable add(P2D h1, double pointSize)
h1 - input datapointSize - size of the pointpublic org.jzy3d.plot3d.primitives.AbstractDrawable draw(P2D h1, double penSize, Color color)
h1 - penSize - size of the pointscolor - to show pointspublic org.jzy3d.plot3d.primitives.AbstractDrawable add(P2D h1, double penSize, Color color)
h1 - input datapenSize - size of the pointscolor - to show pointspublic org.jzy3d.plot3d.primitives.AbstractDrawable add(org.jzy3d.plot3d.primitives.AbstractDrawable shape)
shape - public void draw(org.jzy3d.plot3d.primitives.AbstractDrawable[] shapes)
shapes - public void update()
public void update(int n1,
int n2)
n1 - the location of the plot in xn2 - the location of the plot in ypublic void updateAll()
public org.jzy3d.plot3d.primitives.AbstractDrawable addText(String text, double[] pos, Color co)
text - textpos - position (x,y,z)color - colorpublic org.jzy3d.plot3d.primitives.AbstractDrawable add(F2D f)
f - function to showpublic org.jzy3d.plot3d.primitives.AbstractDrawable add(F2D f, double xmin, double xmax, double ymin, double ymax)
f - function to showxmin - xmax - ymin - ymax - public org.jzy3d.plot3d.primitives.AbstractDrawable add(F2D h1, int xsteps, int ysteps, double xmin, double xmax, double ymin, double ymax)
h1 - xsteps - number of divisions in Xysteps - number of divisions in Yxmin - min Xxmax - max Xymin - min Yymax - max Ypublic org.jzy3d.plot3d.primitives.AbstractDrawable addAsSurface(H2D h2d)
h2d - Histogram for drawing.return - what was addedpublic void add(H2D h2d)
h2d - input histogramreturn - what was addedpublic void export(String file)
export in class jhplot.gui.GHPanelfile - Output file with the proper extension. If no extension, PNG
file is assumed.public void addAsBars(H2D h2d)
h2d - Histogram for drawing.public void setLegendBar()
surface - input objectpublic org.jzy3d.plot3d.primitives.AbstractDrawable draw(H2D h2d)
h2d - Histogram for drawing.public org.jzy3d.chart.Chart getChart()
public void setBackground(Color co)
co - color to be setpublic void setTickScientific(int axis,
int dig)
axis - axis. 0=X, 1=Y, 2=Zdig - number of digitspublic void setTickDecimal(int axis,
int dig)
axis - axis. 0=X, 1=Y, 2=Zdig - precision.public void setTickScientificAll(int dig)
dig - number of digitspublic void setTickDecimalAll(int dig)
dig - number of digitspublic void setAxesBox(boolean isbox)
isbox - false is box with axes is offpublic void close()
public void doc()
public void addBar(double x,
double y,
double z,
double height,
double radius)
x - position in Xy - position in Yradius - radiuspublic void addPoint(double x,
double y,
double z,
double width)
x - position in Xy - position in Yz - position in Zwidth - width or sizepublic void addPolygon(P2D p2d)
p2d - array of X,Y,Z which define polygone pointspublic void addFlatLine(float[] x,
float[] y,
double depth)
x - position in Xy - position in Ydepth - depthcolor - color color to fillpublic void addDisk(double x,
double y,
double z,
double radiusInner,
double radiusOuter,
int slices,
int loops)
x - position Xy - position Yz - position Zslices - number of vertical slices (i.e. wireframes)stacks - loopspublic void addSphere(double x,
double y,
double z,
double radius,
double height,
int slices,
int stacks)
x - position Xy - position Yz - position Zradius - radius of the sphereheight - heightslices - number of vertical slices (i.e. wireframes)stacks - number of horizontal stacks (i.e. wireframes)public void addTube(double x,
double y,
double z,
double radiusBottom,
double radiusTop,
double height,
int slices,
int stacks)
x - position Xy - position Yz - position ZradiusBottom - radius of the bottom circleradiusTop - radius of the top circleheight - height of the cylinderslices - number of vertical slices (i.e. wireframes)stacks - number of horizontal stacks (i.e. wireframes)public void addParallelepiped(float xmin,
float xmax,
float ymin,
float ymax,
float zmin,
float zmax)
xmin - xmax - ymin - ymax - zmin - zmax - public void addLight(double x,
double y,
double z,
Color AmbiantColor,
Color DiffuseColor,
Color SpecularColor)
x - X positiony - Y positionz - Z positionAmbiantColor - Ambiant ColorDiffuseColor - Diffuse ColorSpecularColor - Specular Colorpublic List<org.jzy3d.plot3d.primitives.AbstractDrawable> getShapeList()
DMelt 2.0 © DataMelt by jWork.ORG