Package mgui.geometry
Class Graph2D
java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.PointSet2D
mgui.geometry.Graph2D
public class Graph2D extends PointSet2D
Represents a graph as a 2D geometric shape.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description protected InterfaceAbstractGraph
graph
Fields inherited from class mgui.geometry.PointSet2D
n, nodes
-
Constructor Summary
Constructors Constructor Description Graph2D()
Graph2D(InterfaceAbstractGraph graph)
Graph2D(InterfaceAbstractGraph graph, java.util.HashMap<AbstractGraphNode,org.jogamp.vecmath.Point2f> vertices)
-
Method Summary
Modifier and Type Method Description InterfaceAbstractGraph
getGraph()
java.util.ArrayList<AbstractGraphNode>
getJungVertices()
void
setGraph(InterfaceAbstractGraph graph)
Methods inherited from class mgui.geometry.PointSet2D
addNode, finalize, getVertex, getVertices, resizeArray, setVertices
Methods inherited from class mgui.geometry.Shape2D
clone, contains, getBounds, getCenterPt, getCoords, getDTD, getLocalName, getProximity, getProximityPoint, getShortXML, getSize, getVertices, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, setCoords, setVertices, transform, transform, writeXML, writeXML, writeXML
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
graph
-
-
Constructor Details
-
Graph2D
public Graph2D() -
Graph2D
-
Graph2D
public Graph2D(InterfaceAbstractGraph graph, java.util.HashMap<AbstractGraphNode,org.jogamp.vecmath.Point2f> vertices)
-
-
Method Details
-
getJungVertices
-
getGraph
-
setGraph
-