public class HPlot3DP extends GHFrame
Modifier and Type | Field and Description |
---|---|
boolean |
set |
Constructor and Description |
---|
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
|
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(FPR h)
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 |
resizePad(double widthScale,
double heightScale)
Resize the current pad.
|
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
|
void |
visible(int posX,
int posY)
Set the canvas frame visible.
|
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame
addComp, componentResized, 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, showBorders
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()
public void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic 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 visible()
public void destroy()
public void resizePad(double widthScale, double heightScale)
widthScale
- scale factor applied to the width of the current padheightScale
- scale factor applied the height of the current pad.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 h)
h
- public 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()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics