edu.uci.ics.jung.algorithms.layout3d
Interface Layout<V,E>

All Superinterfaces:
org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f>
All Known Implementing Classes:
AbstractLayout, FRLayout, ISOMLayout, LayoutDecorator, LayoutEventBroadcaster, SpringLayout

public interface Layout<V,E>
extends org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f>

Author:
tom nelson

Method Summary
 Graph<V,E> getGraph()
          Returns the full graph (the one that was passed in at construction time) that this Layout refers to.
 javax.media.j3d.BoundingSphere getSize()
          Returns the current size of the visualization's space.
 void initialize()
          Initializes fields in the node that may not have been set during the constructor.
 boolean isLocked(V v)
          Returns true if the position of vertex v is locked.
 void lock(V v, boolean state)
          Sets a flag which fixes this vertex in place.
 void reset()
           
 void setGraph(Graph<V,E> graph)
          setter for graph
 void setInitializer(org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f> initializer)
          provides initial locations for all vertices.
 void setLocation(V v, javax.vecmath.Point3f location)
          set the location of a vertex
 void setSize(javax.media.j3d.BoundingSphere d)
           
 
Methods inherited from interface org.apache.commons.collections15.Transformer
transform
 

Method Detail

initialize

void initialize()
Initializes fields in the node that may not have been set during the constructor. Must be called before the iterations begin.


setInitializer

void setInitializer(org.apache.commons.collections15.Transformer<V,javax.vecmath.Point3f> initializer)
provides initial locations for all vertices.

Parameters:
initializer -

setGraph

void setGraph(Graph<V,E> graph)
setter for graph

Parameters:
graph -

getGraph

Graph<V,E> getGraph()
Returns the full graph (the one that was passed in at construction time) that this Layout refers to.


reset

void reset()

setSize

void setSize(javax.media.j3d.BoundingSphere d)
Parameters:
d -

getSize

javax.media.j3d.BoundingSphere getSize()
Returns the current size of the visualization's space.


lock

void lock(V v,
          boolean state)
Sets a flag which fixes this vertex in place.

Parameters:
v - vertex

isLocked

boolean isLocked(V v)
Returns true if the position of vertex v is locked.


setLocation

void setLocation(V v,
                 javax.vecmath.Point3f location)
set the location of a vertex

Parameters:
v -
location -


Copyright © 2009. All Rights Reserved.