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.Float max_pt  
    protected java.awt.geom.Point2D.Float min_pt  
    protected Plane3D projection_plane  

    Fields 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.Point2D getProjectedPoint​(org.jogamp.vecmath.Point3f p, Plane3D projection_plane)  
    Plane3D getProjectionPlane()  
    void initialize()  
    void reset()  
    protected void setCoordMap​(edu.uci.ics.jung.graph.Graph<V,​E> graph)  
    void setProjectionPlane​(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, transform

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • projection_plane

      protected Plane3D 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

      public Graph2DLayout​(edu.uci.ics.jung.graph.Graph<V,​E> g)
      Creates an instance for the specified graph, with a default horizontal projection plane.
    • Graph2DLayout

      public Graph2DLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph, Plane3D projection_plane)
  • Method Details

    • getProjectionPlane

      public Plane3D getProjectionPlane()
    • setProjectionPlane

      public void setProjectionPlane​(Plane3D plane)
    • setCoordMap

      protected void setCoordMap​(edu.uci.ics.jung.graph.Graph<V,​E> graph)
    • initialize

      public void initialize()
    • getProjectedPoint

      protected java.awt.geom.Point2D getProjectedPoint​(org.jogamp.vecmath.Point3f p, Plane3D projection_plane)
    • reset

      public void reset()