Class Coordinate3DLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>

java.lang.Object
edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V,​E>
mgui.interfaces.graphs.layouts.Coordinate3DLayout<V,​E>
All Implemented Interfaces:
edu.uci.ics.jung.algorithms.layout3d.Layout<V,​E>, org.apache.commons.collections15.Transformer<V,​org.jogamp.vecmath.Point3f>

public class Coordinate3DLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
extends edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V,​E>
Layout for graph nodes in 3D, specifying fixed positions in R3.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected boolean initialized  
    protected org.jogamp.vecmath.Point3f max_pt  
    protected org.jogamp.vecmath.Point3f min_pt  

    Fields inherited from class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout

    locations
  • Constructor Summary

    Constructors
    Constructor Description
    Coordinate3DLayout​(edu.uci.ics.jung.graph.Graph<V,​E> graph)  
  • Method Summary

    Modifier and Type Method Description
    void initialize()  
    void reset()  
    protected void setCoordMap​(edu.uci.ics.jung.graph.Graph<V,​E> graph)  
    void setInitializer​(org.apache.commons.collections15.Transformer<V,​org.jogamp.vecmath.Point3f> initializer)  
    void setSize​(org.jogamp.java3d.BoundingSphere bs)  
    org.jogamp.vecmath.Point3f transform​(V v)  

    Methods inherited from class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout

    getGraph, getSize, getVertices, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setLocation, setLocation

    Methods inherited from class java.lang.Object

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

    • min_pt

      protected org.jogamp.vecmath.Point3f min_pt
    • max_pt

      protected org.jogamp.vecmath.Point3f max_pt
    • initialized

      protected boolean initialized
  • Constructor Details

    • Coordinate3DLayout

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

    • setCoordMap

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

      public void setSize​(org.jogamp.java3d.BoundingSphere bs)
      Specified by:
      setSize in interface edu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
      Overrides:
      setSize in class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
    • reset

      public void reset()
    • initialize

      public void initialize()
      Specified by:
      initialize in interface edu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
      Specified by:
      initialize in class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
    • setInitializer

      public void setInitializer​(org.apache.commons.collections15.Transformer<V,​org.jogamp.vecmath.Point3f> initializer)
      Specified by:
      setInitializer in interface edu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
      Overrides:
      setInitializer in class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
    • transform

      public org.jogamp.vecmath.Point3f transform​(V v)
      Specified by:
      transform in interface org.apache.commons.collections15.Transformer<V extends AbstractGraphNode,​E extends AbstractGraphEdge>
      Overrides:
      transform in class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,​E extends AbstractGraphEdge>