edu.ucla.stat.SOCR.touchgraph.graphlayout
Class LocalityUtils

java.lang.Object
  extended by 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

Field Summary
static int INFINITE_LOCALITY_RADIUS
           
 
Constructor Summary
LocalityUtils(Locality loc, TGPanel tgp)
           
 
Method Summary
 void addAllGraphElts()
           
 void collapseNode(Node collapseNode)
          Opposite of expand node, works like hide node except that the selected node is not hidden.
 void expandNode(Node n)
          Add to locale nodes that are one edge away from a given node.
 void fastFinishAnimation()
           
 void hideNode(Node hideNode)
          Hides a node, and all the nodes attached to it.
 void setLocale(Node n, int radius)
           
 void setLocale(Node n, int radius, int maxAddEdgeCount, int maxExpandEdgeCount, boolean unidirectional)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFINITE_LOCALITY_RADIUS

public static final int INFINITE_LOCALITY_RADIUS
See Also:
Constant Field Values
Constructor Detail

LocalityUtils

public LocalityUtils(Locality loc,
                     TGPanel tgp)
Method Detail

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.