Package mgui.interfaces.graphs.layouts
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 booleaninitializedprotected org.jogamp.vecmath.Point3fmax_ptprotected org.jogamp.vecmath.Point3fmin_ptFields 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 voidinitialize()voidreset()protected voidsetCoordMap(edu.uci.ics.jung.graph.Graph<V,E> graph)voidsetInitializer(org.apache.commons.collections15.Transformer<V,org.jogamp.vecmath.Point3f> initializer)voidsetSize(org.jogamp.java3d.BoundingSphere bs)org.jogamp.vecmath.Point3ftransform(V v)Methods inherited from class edu.uci.ics.jung.algorithms.layout3d.AbstractLayout
getGraph, getSize, getVertices, getX, getY, isLocked, lock, lock, offsetVertex, setGraph, setLocation, setLocationMethods 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
-
-
Method Details
-
setCoordMap
-
setSize
public void setSize(org.jogamp.java3d.BoundingSphere bs)- Specified by:
setSizein interfaceedu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,E extends AbstractGraphEdge>- Overrides:
setSizein classedu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,E extends AbstractGraphEdge>
-
reset
public void reset() -
initialize
public void initialize()- Specified by:
initializein interfaceedu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,E extends AbstractGraphEdge>- Specified by:
initializein classedu.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:
setInitializerin interfaceedu.uci.ics.jung.algorithms.layout3d.Layout<V extends AbstractGraphNode,E extends AbstractGraphEdge>- Overrides:
setInitializerin classedu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,E extends AbstractGraphEdge>
-
transform
- Specified by:
transformin interfaceorg.apache.commons.collections15.Transformer<V extends AbstractGraphNode,E extends AbstractGraphEdge>- Overrides:
transformin classedu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V extends AbstractGraphNode,E extends AbstractGraphEdge>
-