com.touchgraph.graphlayout.graphelements
Class VisibleLocality

java.lang.Object
  extended bycom.touchgraph.graphlayout.graphelements.GraphEltSet
      extended bycom.touchgraph.graphlayout.graphelements.Locality
          extended bycom.touchgraph.graphlayout.graphelements.VisibleLocality
All Implemented Interfaces:
ImmutableGraphEltSet

public class VisibleLocality
extends Locality

VisibleLocality: Extends Locality to spefically 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 1.1.1.1 2004/02/06 08:44:07 keesj Exp $
Author:
Alexander Shapiro

Field Summary
 
Fields inherited from class com.touchgraph.graphlayout.graphelements.Locality
completeEltSet
 
Fields inherited from class com.touchgraph.graphlayout.graphelements.GraphEltSet
edges, nodeIDRegistry, nodes
 
Constructor Summary
VisibleLocality(GraphEltSet ges)
           
 
Method Summary
 void addEdge(Edge edge)
          Add the Edge edge to the graph.
 void addNode(Node node)
          Add the Node node to the graph, and registers the Node via its ID.
 void removeAll()
           
 boolean removeEdge(Edge edge)
           
 boolean removeNode(Node node)
           
 void updateLocalityFromVisibility()
           
 
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, contains, contains, deleteEdge, edgeAt, edgeCount, edgeNum, findNode, findNodeLabelContaining, findNodesByLabel, forAllEdges, forAllNodePairs, forAllNodes, getEdges, getFirstNode, getNodes, getRandomNode, nodeAt, nodeCount, nodeNum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleLocality

public VisibleLocality(GraphEltSet ges)
Method Detail

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


Copyright © 2003-2004 SourceForge. All Rights Reserved.