com.touchgraph.graphlayout.interaction
Class RotateScroll
java.lang.Object
com.touchgraph.graphlayout.interaction.RotateScroll
- All Implemented Interfaces:
- java.util.EventListener, GraphListener
- public class RotateScroll
- extends java.lang.Object
- implements GraphListener
RotateScroll. Allows one to rotate the graph by clicking+dragging
The rotate lens won't work properly unless it's the top lens, because it
does not account for distortion from above lenses. Methods for getting
lenses above the current one need to be added to TGLensSet to solve this problem.
- Version:
- 1.21 $Id: RotateScroll.java,v 1.1.1.1 2004/02/06 08:44:07 keesj Exp $
- Author:
- Alexander Shapiro
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotateScroll
public RotateScroll(TGPanel tgp)
- Constructor with TGPanel tgp.
getLens
public com.touchgraph.graphlayout.interaction.RotateScroll.RotateLens getLens()
getRotateSB
public javax.swing.JScrollBar getRotateSB()
getRotateDragUI
public com.touchgraph.graphlayout.interaction.RotateScroll.RotateDragUI getRotateDragUI()
getRotationAngle
public int getRotationAngle()
setRotationAngle
public void setRotationAngle(int angle)
graphMoved
public void graphMoved()
- Specified by:
graphMoved
in interface GraphListener
graphReset
public void graphReset()
- Specified by:
graphReset
in interface GraphListener
incrementRotateAngle
public void incrementRotateAngle(double inc)
Copyright © 2003-2004 SourceForge. All Rights Reserved.