|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.GraphEltSet edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.Locality
public class Locality
Locality: A way of representing a subset of a larger set of nodes. Allows for both manipulation of the subset, and manipulation of the larger set. For instance, one can call removeNode to delete it from the subset, or deleteNode to remove it from the larger set. Locality is used in conjunction with LocalityUtils, which handle locality shift animations. More synchronization will almost definitely be required.
Field Summary | |
---|---|
protected GraphEltSet |
completeEltSet
|
Fields inherited from class edu.ucla.stat.SOCR.touchgraph.graphlayout.graphelements.GraphEltSet |
---|
edges, nodeIDRegistry, nodes |
Constructor Summary | |
---|---|
Locality(GraphEltSet ges)
Constructor with GraphEltSet ges. |
Method Summary | |
---|---|
void |
addAll()
|
void |
addEdge(Edge e)
Add the Edge edge to the graph. |
void |
addNode(Node n)
Add the Node node to the graph, and registers the Node via its ID. |
void |
addNodeWithEdges(Node n)
|
void |
clearAll()
Clear all nodes and edges. |
boolean |
deleteEdge(Edge e)
Delete the Edge edge. |
void |
deleteEdges(java.util.Vector edgesToDelete)
Delete the Edges contained within the Vector edgedToDelete. |
boolean |
deleteNode(Node node)
Delete the Node node, returning true if successful. |
void |
deleteNodes(java.util.Vector nodesToDelete)
Delete the Nodes contained within the Vector nodesToDelete. |
Edge |
findEdge(Node from,
Node to)
Return an Edge spanning Node from to Node to. |
GraphEltSet |
getCompleteEltSet()
|
void |
removeAll()
|
boolean |
removeEdge(Edge e)
|
void |
removeEdges(java.util.Vector edgesToRemove)
|
boolean |
removeNode(Node node)
|
void |
removeNodes(java.util.Vector nodesToRemove)
|
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 |
Field Detail |
---|
protected GraphEltSet completeEltSet
Constructor Detail |
---|
public Locality(GraphEltSet ges)
Method Detail |
---|
public GraphEltSet getCompleteEltSet()
public void addNode(Node n) throws TGException
GraphEltSet
addNode
in class GraphEltSet
TGException
public void addEdge(Edge e)
GraphEltSet
addEdge
in class GraphEltSet
public void addNodeWithEdges(Node n) throws TGException
TGException
public void addAll() throws TGException
TGException
public Edge findEdge(Node from, Node to)
GraphEltSet
findEdge
in interface ImmutableGraphEltSet
findEdge
in class GraphEltSet
public boolean deleteEdge(Edge e)
GraphEltSet
deleteEdge
in class GraphEltSet
public void deleteEdges(java.util.Vector edgesToDelete)
GraphEltSet
deleteEdges
in class GraphEltSet
public boolean removeEdge(Edge e)
public void removeEdges(java.util.Vector edgesToRemove)
public boolean deleteNode(Node node)
GraphEltSet
deleteNode
in class GraphEltSet
public void deleteNodes(java.util.Vector nodesToDelete)
GraphEltSet
deleteNodes
in class GraphEltSet
public boolean removeNode(Node node)
public void removeNodes(java.util.Vector nodesToRemove)
public void removeAll()
public void clearAll()
GraphEltSet
clearAll
in class GraphEltSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |