org.wilmascope.graph
Class NodeList

java.lang.Object
  extended by org.wilmascope.graph.List<Node>
      extended by org.wilmascope.graph.NodeList
All Implemented Interfaces:
java.lang.Iterable<Node>

public class NodeList
extends List<Node>


Field Summary
 
Fields inherited from class org.wilmascope.graph.List
elements
 
Constructor Summary
NodeList()
           
NodeList(NodeList nodes)
           
 
Method Summary
 void add(Node node)
           
 boolean contains(Node node)
           
 Node get(int index)
           
 javax.vecmath.Point3f getBarycenter()
           
 Plane getBestFitPlane()
           
 void getBoundingBoxCorners(javax.vecmath.Point3f bottomLeft, javax.vecmath.Point3f topRight, javax.vecmath.Point3f centroid)
          Finds the extreme corners of the bounding box around these nodes
 ClusterList getClusters()
           
 EdgeList getEdges()
           
 NodeList getIsolated()
           
 javax.vecmath.Point3f getMidPoint()
           
 NodeList getSinks()
           
 NodeList getSources()
           
 void getVWorldBoundingBoxCorners(javax.vecmath.Point3f bottomLeft, javax.vecmath.Point3f topRight, javax.vecmath.Point3f centroid)
          Finds the extreme corners of the bounding box around these nodes in VWorld coordinates
 void hide()
           
 void remove(Node node)
           
 void removeAll(NodeList l)
          removes all references to the nodes in l in this list and if they are clusters then also from the cluster list beneath this NodeList
 void reposition(javax.vecmath.Vector3f delta)
           
 void setPosition(javax.vecmath.Point3f position)
           
 void show(GraphCanvas gc)
           
 
Methods inherited from class org.wilmascope.graph.List
addAll, delete, draw, getElementsVector, iterator, removeAll, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()

NodeList

public NodeList(NodeList nodes)
Method Detail

add

public void add(Node node)

getClusters

public ClusterList getClusters()

remove

public void remove(Node node)

removeAll

public void removeAll(NodeList l)
removes all references to the nodes in l in this list and if they are clusters then also from the cluster list beneath this NodeList


get

public Node get(int index)

contains

public boolean contains(Node node)

reposition

public void reposition(javax.vecmath.Vector3f delta)

setPosition

public void setPosition(javax.vecmath.Point3f position)

hide

public void hide()
Overrides:
hide in class List<Node>

show

public void show(GraphCanvas gc)
Overrides:
show in class List<Node>

getEdges

public EdgeList getEdges()

getBarycenter

public javax.vecmath.Point3f getBarycenter()
Returns:
the barycenter of all the nodes in the NodeList

getBestFitPlane

public Plane getBestFitPlane()

getBoundingBoxCorners

public void getBoundingBoxCorners(javax.vecmath.Point3f bottomLeft,
                                  javax.vecmath.Point3f topRight,
                                  javax.vecmath.Point3f centroid)
Finds the extreme corners of the bounding box around these nodes

Parameters:
bottomLeft - bottom left corner of the bounding box
topRight - top right corner of the bounding box
centroid - midway between bottomLeft and topRight

getVWorldBoundingBoxCorners

public void getVWorldBoundingBoxCorners(javax.vecmath.Point3f bottomLeft,
                                        javax.vecmath.Point3f topRight,
                                        javax.vecmath.Point3f centroid)
Finds the extreme corners of the bounding box around these nodes in VWorld coordinates

Parameters:
bottomLeft - bottom left corner of the bounding box
topRight - top right corner of the bounding box
centroid - midway between bottomLeft and topRight

getSinks

public NodeList getSinks()

getIsolated

public NodeList getIsolated()

getSources

public NodeList getSources()

getMidPoint

public javax.vecmath.Point3f getMidPoint()
Returns: