|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjhplot.GHPanel
jhplot.GHFrame
jhplot.HGraph
public class HGraph
Create a frame with interactive graphs.
| Field Summary | |
|---|---|
boolean |
set
|
| Fields inherited from class jhplot.GHFrame |
|---|
about, bar, item00, item01, item02, item03, item04, item05, item06, item11, item12, item13, mainFrame, menu, N1, N1edit, N1final, N2, N2edit, N2final |
| Fields inherited from class jhplot.GHPanel |
|---|
backMargin, bottomPanel, bottomSize, CanvasPanel, gTitleColor, gTitleFont, gTitleText, Height, leftPanel, leftSize, mainPanel, rightPanel, rightSize, topPanel, topSize, Width |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
protected void |
ClearFrame()
Clear all the frames. |
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 |
protected void |
OpenReadDataDialog()
|
protected void |
OpenReadDialog()
Open a dialog to read the file. |
protected void |
OpenWriteDialog()
Open a dialog to write the file. |
void |
quit()
|
protected void |
quitFrame()
Close the frame from menu |
protected void |
RefreshFrame()
Refresh all the frames. |
void |
setPos(String vertex,
int n1,
int n2)
Set vertex position |
protected void |
showHelp()
quite the entire frame |
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, doNotShowFrame, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, removeFrame, setPlotsNum, showAbout, updateFrame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean set
| Constructor Detail |
|---|
public 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 graph
public HGraph(String title,
int xs,
int ys)
title - Title for the canvasxs - size in xys - size in y
public 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()
| Method Detail |
|---|
protected void ClearFrame()
ClearFrame in class GHFrameprotected void RefreshFrame()
RefreshFrame in class GHFrameprotected void OpenWriteDialog()
OpenWriteDialog in class GHFrameprotected void OpenReadDialog()
OpenReadDialog in class GHFramepublic 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 vertex
public void addEdge(String vertex1,
String vertex2)
vertex1 - first vertexvertex2 - second vertexpublic org.jgraph.JGraph getGraph()
public org.jgrapht.ListenableGraph getListenableGraph()
public void quit()
protected void quitFrame()
quitFrame in class GHFrameprotected void OpenReadDataDialog()
OpenReadDataDialog in class GHFrameprotected void showHelp()
GHFrame
showHelp in class GHFramepublic void doc()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||