com.touchgraph.graphlayout.graphelements
Class VisibleLocality
java.lang.Object
com.touchgraph.graphlayout.graphelements.GraphEltSet
com.touchgraph.graphlayout.graphelements.Locality
com.touchgraph.graphlayout.graphelements.VisibleLocality
- All Implemented Interfaces:
- ImmutableGraphEltSet
public class VisibleLocality
- extends Locality
VisibleLocality: Extends Locality to specifically handle the
Nodes + Edges that are visible on screen. The visible attribute
of the nodes + edges is set to true when they appear on screen, and
false when they are removed from screen.
Locality is used in conjunction with LocalityUtils, which handle
locality shift animations.
- Version:
- 1.21 $Id: VisibleLocality.java,v 3.0 2004/07/24 13:21:18 altheim Exp $
- Author:
- Alexander Shapiro
| Methods inherited from class com.touchgraph.graphlayout.graphelements.Locality |
addAll, addNodeWithEdges, clearAll, deleteEdge, deleteEdges, deleteNode, deleteNodes, findEdge, getCompleteEltSet, removeEdges, removeNodes |
| Methods inherited from class com.touchgraph.graphlayout.graphelements.GraphEltSet |
addEdge, changeNodeID, contains, contains, deleteEdge, edgeAt, edgeCount, findNode, findNodeLabelContaining, findNodesByLabel, findNodesByLabel, forAllEdges, forAllNodePairs, forAllNodes, getEdges, getFirstNode, getNodes, getRandomNode, nodeAt, nodeCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VisibleLocality
public VisibleLocality(GraphEltSet ges)
addNode
public void addNode(Node node)
throws TGException
- Description copied from class:
GraphEltSet
- Add the Node node to the graph, and
registers the Node via its ID. If no ID exists, no registration occurs.
- Overrides:
addNode in class Locality
- Throws:
TGException
addEdge
public void addEdge(Edge edge)
- Description copied from class:
GraphEltSet
- Add the Edge edge to the graph.
- Overrides:
addEdge in class Locality
removeEdge
public boolean removeEdge(Edge edge)
- Overrides:
removeEdge in class Locality
removeNode
public boolean removeNode(Node node)
- Overrides:
removeNode in class Locality
removeAll
public void removeAll()
- Overrides:
removeAll in class Locality
updateLocalityFromVisibility
public void updateLocalityFromVisibility()
throws TGException
- Throws:
TGException
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.