com.touchgraph.graphlayout.interaction
Class LocalityScroll

java.lang.Object
  extended by com.touchgraph.graphlayout.interaction.LocalityScroll
All Implemented Interfaces:
GraphListener, EventListener
Direct Known Subclasses:
GraphLocalityScroll

public class LocalityScroll
extends Object
implements GraphListener

LocalityScroll.

Version:
1.21 $Id: LocalityScroll.java,v 3.0 2004/07/24 13:21:21 altheim Exp $
Author:
Alexander Shapiro, Murray Altheim (2002-08-08; added setable default and maximum values)

Field Summary
static int scrollDef
          The default scroll value.
static int scrollMax
          The maximum scroll value.
 
Constructor Summary
LocalityScroll(TGPanel tgp)
           
 
Method Summary
 int getLocalityRadius()
           
 JScrollBar getLocalitySB()
           
 int getMaximum()
          Returns the maximum scroll limit (prior to INFINITE_LOCALITY_RADIUS) as an int.
protected  Node getSelect()
          Included to permit overriding.
 void graphMoved()
           
 void graphReset()
           
 void setDefault(int n)
          Sets the default scroll limit to n.
 void setLocalityRadius(int radius)
           
 void setMaximum(int n)
          Sets the maximum scroll limit (prior to INFINITE_LOCALITY_RADIUS) to n.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scrollDef

public static int scrollDef
The default scroll value.


scrollMax

public static int scrollMax
The maximum scroll value.

Constructor Detail

LocalityScroll

public LocalityScroll(TGPanel tgp)
Method Detail

setMaximum

public void setMaximum(int n)
Sets the maximum scroll limit (prior to INFINITE_LOCALITY_RADIUS) to n. Allowed values are between 4 and 50.


getMaximum

public int getMaximum()
Returns the maximum scroll limit (prior to INFINITE_LOCALITY_RADIUS) as an int.


setDefault

public void setDefault(int n)
Sets the default scroll limit to n. Allowed values are between 0 and the current value of scrollMax.


getLocalitySB

public JScrollBar getLocalitySB()

getLocalityRadius

public int getLocalityRadius()

setLocalityRadius

public void setLocalityRadius(int radius)

graphMoved

public void graphMoved()
Specified by:
graphMoved in interface GraphListener

graphReset

public void graphReset()
Specified by:
graphReset in interface GraphListener

getSelect

protected Node getSelect()
Included to permit overriding. Used by the private class LocalityAdjustmentListener.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.