com.touchgraph.graphlayout.interaction
Class HyperScroll

java.lang.Object
  extended by com.touchgraph.graphlayout.interaction.HyperScroll
All Implemented Interfaces:
GraphListener, EventListener

public class HyperScroll
extends Object
implements GraphListener

HyperScroll. Responsible for producing that neat hyperbolic effect. (Which isn't really hyperbolic, but just non-linear). Demonstrates the usefulness of Lenses.

Version:
1.06
Author:
Alexander Shapiro

Field Summary
protected  int hyperRadius
           
 
Constructor Summary
HyperScroll(TGPanel tgp)
           
 
Method Summary
 int getHyperbolicDistortion()
           
 int getHyperRadius()
          Returns the radius of the circle at which points stay a constant distance away from the center despite the hyperbolic (fisheye) effect.
 JScrollBar getHyperSB()
           
 com.touchgraph.graphlayout.interaction.HyperScroll.HyperLens getLens()
           
 void graphMoved()
           
 void graphReset()
           
 void setHyperbolicDistortion(int value)
           
 void setHyperRadius(int r)
          Sets the radius of the circle at which points stay a constant distance away from the center despite the hyperbolic (fisheye) effect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hyperRadius

protected int hyperRadius
Constructor Detail

HyperScroll

public HyperScroll(TGPanel tgp)
Method Detail

getHyperSB

public JScrollBar getHyperSB()

getLens

public com.touchgraph.graphlayout.interaction.HyperScroll.HyperLens getLens()

graphMoved

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

graphReset

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

getHyperbolicDistortion

public int getHyperbolicDistortion()

setHyperbolicDistortion

public void setHyperbolicDistortion(int value)

setHyperRadius

public void setHyperRadius(int r)
Sets the radius of the circle at which points stay a constant distance away from the center despite the hyperbolic (fisheye) effect.


getHyperRadius

public int getHyperRadius()
Returns the radius of the circle at which points stay a constant distance away from the center despite the hyperbolic (fisheye) effect.



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