|
|||||||||
| 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
|
| 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. |
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 |
| Methods inherited from class jhplot.GHFrame |
|---|
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 |
|---|
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 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()
public void doc()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||