org.wilmascope.graph
Class NodeList
java.lang.Object
org.wilmascope.graph.List<Node>
org.wilmascope.graph.NodeList
- All Implemented Interfaces:
- java.lang.Iterable<Node>
public class NodeList
- extends List<Node>
Fields inherited from class org.wilmascope.graph.List |
elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeList
public NodeList()
NodeList
public NodeList(NodeList nodes)
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 boxtopRight
- top right corner of the bounding boxcentroid
- 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 boxtopRight
- top right corner of the bounding boxcentroid
- midway between bottomLeft and topRight
getSinks
public NodeList getSinks()
getIsolated
public NodeList getIsolated()
getSources
public NodeList getSources()
getMidPoint
public javax.vecmath.Point3f getMidPoint()
- Returns: