com.touchgraph.graphlayout
Class LocalityUtils

java.lang.Object
  extended bycom.touchgraph.graphlayout.LocalityUtils

public class LocalityUtils
extends java.lang.Object

LocalityUtils: Utilities for switching locality. Animation effects require a reference to TGPanel.

Version:
1.21 $Id: LocalityUtils.java,v 1.1.1.1 2004/02/06 08:44:05 keesj 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.



Copyright © 2003-2004 SourceForge. All Rights Reserved.