| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.layout3d.AbstractLayout<V,E>
V - public abstract class AbstractLayout<V,E>
Implements some of the dirty work of writing a layout algorithm, allowing the user to express their major intent more simply. When writing a Layout, there are many shared tasks: handling tracking locked nodes, applying filters, and tracing nearby vertices. This package automates all of those.
| Field Summary | |
|---|---|
protected  Map<V,javax.vecmath.Point3f> | 
locations
 | 
| Constructor Summary | |
|---|---|
protected  | 
AbstractLayout(Graph<V,E> graph)
Constructor.  | 
protected  | 
AbstractLayout(Graph<V,E> graph,
               
 | 
protected  | 
AbstractLayout(Graph<V,E> graph,
               
 | 
| Method Summary | |
|---|---|
 Graph<V,E> | 
getGraph()
Accessor for the graph that represets all vertices.  | 
 javax.media.j3d.BoundingSphere | 
getSize()
Returns the current size of the visualization space, accoring to the last call to resize().  | 
 Collection<V> | 
getVertices()
 | 
 double | 
getX(V v)
Returns the x coordinate of the vertex from the Coordinates object.  | 
 double | 
getY(V v)
Returns the y coordinate of the vertex from the Coordinates object.  | 
abstract  void | 
initialize()
Initializer, calls intialize_local and initializeLocations to start construction process.  | 
 boolean | 
isLocked(V v)
Returns true if the position of vertex v
 is locked. | 
 void | 
lock(boolean lock)
 | 
 void | 
lock(V v,
     boolean state)
Adds the vertex to the DontMove list  | 
protected  void | 
offsetVertex(V v,
             float xOffset,
             float yOffset,
             float zOffset)
 | 
 void | 
setGraph(Graph<V,E> graph)
setter for graph  | 
 void | 
setInitializer(
provides initial locations for all vertices.  | 
 void | 
setLocation(V picked,
            float x,
            float y,
            float z)
Forcibly moves a vertex to the (x,y) location by setting its x and y locations to the inputted location.  | 
 void | 
setLocation(V picked,
            javax.vecmath.Point3f p)
set the location of a vertex  | 
 void | 
setSize(javax.media.j3d.BoundingSphere size)
When a visualization is resized, it presumably wants to fix the locations of the vertices and possibly to reinitialize its data.  | 
 javax.vecmath.Point3f | 
transform(V v)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface edu.uci.ics.jung.algorithms.layout3d.Layout | 
|---|
reset | 
| Field Detail | 
|---|
protected Map<V,javax.vecmath.Point3f> locations
| Constructor Detail | 
|---|
protected AbstractLayout(Graph<V,E> graph)
g - 
protected AbstractLayout(Graph<V,E> graph,
                          initializer) 
protected AbstractLayout(Graph<V,E> graph,
                          initializer,
                         javax.media.j3d.BoundingSphere size) 
| Method Detail | 
|---|
public void setGraph(Graph<V,E> graph)
Layout
setGraph in interface Layout<V,E>public void setSize(javax.media.j3d.BoundingSphere size)
setSize in interface Layout<V,E>public boolean isLocked(V v)
Layouttrue if the position of vertex v
 is locked.
isLocked in interface Layout<V,E>public Collection<V> getVertices()
public abstract void initialize()
initialize in interface Layout<V,E>public void setInitializer(initializer) 
Layout
setInitializer in interface Layout<V,E>public javax.media.j3d.BoundingSphere getSize()
getSize in interface Layout<V,E>public javax.vecmath.Point3f transform(V v)
public double getX(V v)
edu.uci.ics.jung.visualization.layout.Layout#getX(edu.uci.ics.jung.graph.Vertex)public double getY(V v)
edu.uci.ics.jung.visualization.layout.Layout#getX(edu.uci.ics.jung.graph.Vertex)
protected void offsetVertex(V v,
                            float xOffset,
                            float yOffset,
                            float zOffset)
v - xOffset - yOffset - public Graph<V,E> getGraph()
getGraph in interface Layout<V,E>
public void setLocation(V picked,
                        float x,
                        float y,
                        float z)
public void setLocation(V picked,
                        javax.vecmath.Point3f p)
Layout
setLocation in interface Layout<V,E>
public void lock(V v,
                 boolean state)
lock in interface Layout<V,E>v - vertexpublic void lock(boolean lock)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||