com.touchgraph.graphlayout.interaction
Class HyperScroll
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hyperRadius
protected int hyperRadius
HyperScroll
public HyperScroll(TGPanel tgp)
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.