|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
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(java.lang.String title)
Construct a HGraph canvas with a plot with the default parameters 600 by 400, and 10% space for the global title |
|
HGraph(java.lang.String title,
int xs,
int ys)
Construct a HPlot canvas with a single plot/graph |
|
HGraph(java.lang.String title,
int xs,
int ys,
boolean set)
Construct a HGraph canvas with a single plot/graph |
|
HGraph(java.lang.String title,
int xs,
int ys,
int n1,
int n2)
Construct a HGraph canvas with plots/graphs |
|
HGraph(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create HGraph canvas with a several graphs |
Method Summary | |
---|---|
void |
addEdge(java.lang.String vertex1,
java.lang.String vertex2)
Add a connector between 2 vertexes |
void |
addVertex(java.lang.String vertex)
Add a new vertex |
void |
clear()
Clear the current graph including graph settings. |
void |
clear(int i1,
int i2)
Clear the graph characterised 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 |
distroy()
Distroy the canvas frame |
org.jgraph.JGraph |
getGraph()
Returns the current graph |
org.jgrapht.ListenableGraph |
getListenableGraph()
Returns the current Listenable Graph |
void |
quit()
|
void |
setPos(java.lang.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, showAbout, 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(java.lang.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(java.lang.String title, int xs, int ys)
title
- Title for the canvasxs
- size in xys
- size in ypublic HGraph(java.lang.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(java.lang.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(java.lang.String title)
title
- Titlepublic HGraph()
Method Detail |
---|
public void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic void visible()
public void distroy()
public void setPos(java.lang.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(java.lang.String vertex)
vertex
- added vertexpublic void addEdge(java.lang.String vertex1, java.lang.String vertex2)
vertex1
- first vertexvertex2
- second vertexpublic org.jgraph.JGraph getGraph()
public org.jgrapht.ListenableGraph getListenableGraph()
public void quit()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |