Class Graph2DLayout<V extends AbstractGraphNode,E extends AbstractGraphEdge>
java.lang.Object
edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
mgui.interfaces.shapes.graphs.util.Graph2DLayout<V,E>
- Type Parameters:
V-E-
- All Implemented Interfaces:
edu.uci.ics.jung.algorithms.layout.Layout<V,E>,org.apache.commons.collections15.Transformer<V,java.awt.geom.Point2D>
public class Graph2DLayout<V extends AbstractGraphNode,E extends AbstractGraphEdge>
extends edu.uci.ics.jung.algorithms.layout.AbstractLayout<V,E>
Layout for use with
Graph2DInt.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Point2D.Floatmax_ptprotected java.awt.geom.Point2D.Floatmin_ptprotected Plane3Dprojection_planeFields inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout
graph, initialized, locations, size -
Constructor Summary
Constructors Constructor Description Graph2DLayout(edu.uci.ics.jung.graph.Graph<V,E> g)Creates an instance for the specified graph, with a default horizontal projection plane.Graph2DLayout(edu.uci.ics.jung.graph.Graph<V,E> graph, Plane3D projection_plane) -
Method Summary
Modifier and Type Method Description protected java.awt.geom.Point2DgetProjectedPoint(org.jogamp.vecmath.Point3f p, Plane3D projection_plane)Plane3DgetProjectionPlane()voidinitialize()voidreset()protected voidsetCoordMap(edu.uci.ics.jung.graph.Graph<V,E> graph)voidsetProjectionPlane(Plane3D plane)Methods inherited from class edu.uci.ics.jung.algorithms.layout.AbstractLayout
getGraph, getSize, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setInitializer, setLocation, setLocation, setSize, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
projection_plane
-
min_pt
protected java.awt.geom.Point2D.Float min_pt -
max_pt
protected java.awt.geom.Point2D.Float max_pt
-
-
Constructor Details
-
Graph2DLayout
Creates an instance for the specified graph, with a default horizontal projection plane. -
Graph2DLayout
-
-
Method Details
-
getProjectionPlane
-
setProjectionPlane
-
setCoordMap
-
initialize
public void initialize() -
getProjectedPoint
protected java.awt.geom.Point2D getProjectedPoint(org.jogamp.vecmath.Point3f p, Plane3D projection_plane) -
reset
public void reset()
-