public class HGraph
extends jhplot.gui.GHFrame
| Modifier and Type | Field and Description |
|---|---|
boolean |
set |
| Constructor and Description |
|---|
HGraph()
Construct a Graph without any canvas.
|
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
|
org.jgrapht.graph.DefaultDirectedGraph<Object,org.jgrapht.graph.DefaultEdge> |
buildDirectedGraph()
Build a directed graph without visualization.
|
org.jgrapht.graph.DirectedMultigraph<Object,org.jgrapht.graph.DefaultEdge> |
buildDirectedMultigraph()
Build a directed multi-graph without visualization.
|
org.jgrapht.graph.DirectedPseudograph<Object,org.jgrapht.graph.DefaultEdge> |
buildDirectedPseudograph()
Build a directed Pseudograph graph without visualization.
|
org.jgrapht.graph.DirectedWeightedMultigraph<Object,org.jgrapht.graph.DefaultWeightedEdge> |
buildDirectedWeightedMultigraph()
Build a weighted directed graph without visualization.
|
org.jgrapht.graph.Multigraph<Object,org.jgrapht.graph.DefaultEdge> |
buildMultigraph()
Build a directed multi-graph without visualization.
|
org.jgrapht.graph.Pseudograph<Object,org.jgrapht.graph.DefaultEdge> |
buildPseudograph()
Build a Pseudograph graph without visualization.
|
org.jgrapht.graph.SimpleGraph<Object,org.jgrapht.graph.DefaultEdge> |
buildSimpleGraph()
Build a simple graph without visualization.
|
org.jgrapht.graph.SimpleWeightedGraph<Object,org.jgrapht.graph.DefaultWeightedEdge> |
buildSimpleWeightedGraph()
Build a simple weighted graph without visualization.
|
org.jgrapht.graph.Pseudograph<Object,org.jgrapht.graph.DefaultWeightedEdge> |
buildWeightedPseudograph()
Build a Pseudograph graph without visualization.
|
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
|
com.mxgraph.swing.mxGraphComponent |
showGraph(org.jgrapht.Graph g)
Shows a graph previously built using "build*" methods.
|
void |
update()
Update frame.
|
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, convertSVG, convertSVG, 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, 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 org.jgrapht.graph.Pseudograph<Object,org.jgrapht.graph.DefaultEdge> buildPseudograph()
public org.jgrapht.graph.Pseudograph<Object,org.jgrapht.graph.DefaultWeightedEdge> buildWeightedPseudograph()
public org.jgrapht.graph.DirectedPseudograph<Object,org.jgrapht.graph.DefaultEdge> buildDirectedPseudograph()
public org.jgrapht.graph.SimpleGraph<Object,org.jgrapht.graph.DefaultEdge> buildSimpleGraph()
public org.jgrapht.graph.SimpleWeightedGraph<Object,org.jgrapht.graph.DefaultWeightedEdge> buildSimpleWeightedGraph()
public org.jgrapht.graph.DefaultDirectedGraph<Object,org.jgrapht.graph.DefaultEdge> buildDirectedGraph()
public org.jgrapht.graph.Multigraph<Object,org.jgrapht.graph.DefaultEdge> buildMultigraph()
public org.jgrapht.graph.DirectedMultigraph<Object,org.jgrapht.graph.DefaultEdge> buildDirectedMultigraph()
public org.jgrapht.graph.DirectedWeightedMultigraph<Object,org.jgrapht.graph.DefaultWeightedEdge> buildDirectedWeightedMultigraph()
public com.mxgraph.swing.mxGraphComponent showGraph(org.jgrapht.Graph g)
g - input graph.public void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void update()
public 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()
DMelt 2.0 © DataMelt by jWork.ORG