edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements
Class VisibleLocality
java.lang.Object
edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.GraphEltSet
edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.Locality
edu.ucla.stat.SOCR.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.22-jre1.1 $Id: VisibleLocality.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
- Author:
- Alexander Shapiro
Methods inherited from class edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.Locality |
addAll, addNodeWithEdges, clearAll, deleteEdge, deleteEdges, deleteNode, deleteNodes, findEdge, getCompleteEltSet, removeEdges, removeNodes |
Methods inherited from class edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.GraphEltSet |
addEdge, contains, contains, deleteEdge, edgeAt, edgeCount, edgeNum, findNode, findNodeByURL, findNodeLabelContaining, forAllEdges, forAllNodePairs, forAllNodes, getFirstNode, getRandomNode, nodeAt, nodeCount, nodeNum |
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