public class HGraph
extends jhplot.gui.GHFrame
| Modifier and Type | Field and Description |
|---|---|
boolean |
set |
| Constructor and Description |
|---|
HGraph()
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title "Default"
|
HGraph(String title)
Construct a HGraph canvas with a plot with the default parameters 600 by
400, and 10% space for the global title
|
HGraph(String title,
int xs,
int ys)
Construct a HPlot canvas with a single plot/graph
|
HGraph(String title,
int xs,
int ys,
boolean set)
Construct a HGraph canvas with a single plot/graph
|
HGraph(String title,
int xs,
int ys,
int n1,
int n2)
Construct a HGraph canvas with plots/graphs
|
HGraph(String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create HGraph canvas with several graphs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(String vertex1,
String vertex2)
Add a connector between 2 vertexes
|
void |
addVertex(String vertex)
Add a new vertex
|
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 investgate it.
|
void |
destroy()
Destroy the canvas frame
|
void |
doc()
Show online documentation.
|
org.jgraph.JGraph |
getGraph()
Returns the current graph
|
org.jgrapht.ListenableGraph |
getListenableGraph()
Returns the current Listenable Graph
|
void |
quit() |
void |
setPos(String vertex,
int n1,
int n2)
Set vertex position
|
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, disableDoubleBuffering, enableDoubleBuffering, export, exportDialog, 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 HGraph(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 HGraph(String title, int xs, int ys)
title - Title for the canvasxs - size in xys - size in ypublic HGraph(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 HGraph(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 HGraph(String title)
title - Titlepublic HGraph()
public void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void visible()
public void destroy()
public void setPos(String vertex, int n1, int n2)
vertex - Vertex namen1 - Position in Xn2 - Position in Ypublic 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 addVertex(String vertex)
vertex - added vertexpublic void addEdge(String vertex1, String vertex2)
vertex1 - first vertexvertex2 - second vertexpublic org.jgraph.JGraph getGraph()
public org.jgrapht.ListenableGraph getListenableGraph()
public void quit()
public void doc()
jHepWork 3.8 ©