edu.ucla.stat.SOCR.touchgraph.graphlayout
Class LocalityUtils
java.lang.Object
edu.ucla.stat.SOCR.touchgraph.graphlayout.LocalityUtils
public class LocalityUtils
- extends java.lang.Object
LocalityUtils: Utilities for switching locality. Animation effects
require a reference to TGPanel.
- Version:
- 1.22-jre1.1 $Id: LocalityUtils.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
- Author:
- Alexander Shapiro
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INFINITE_LOCALITY_RADIUS
public static final int INFINITE_LOCALITY_RADIUS
- See Also:
- Constant Field Values
LocalityUtils
public LocalityUtils(Locality loc,
TGPanel tgp)
fastFinishAnimation
public void fastFinishAnimation()
setLocale
public void setLocale(Node n,
int radius,
int maxAddEdgeCount,
int maxExpandEdgeCount,
boolean unidirectional)
throws TGException
- Throws:
TGException
setLocale
public void setLocale(Node n,
int radius)
throws TGException
- Throws:
TGException
addAllGraphElts
public void addAllGraphElts()
throws TGException
- Throws:
TGException
expandNode
public void expandNode(Node n)
- Add to locale nodes that are one edge away from a given node.
This method does not utilize "fastFinishShift" so it's likely that
synchronization errors will occur.
hideNode
public void hideNode(Node hideNode)
- Hides a node, and all the nodes attached to it.
collapseNode
public void collapseNode(Node collapseNode)
- Opposite of expand node, works like hide node except that the selected node is not hidden.