edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction
Class RotateScroll

java.lang.Object
  extended by edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.RotateScroll
All Implemented Interfaces:
GraphListener, java.util.EventListener

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.22-jre1.1 $Id: RotateScroll.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
Author:
Alexander Shapiro

Constructor Summary
RotateScroll(TGPanel tgp)
          Constructor with TGPanel tgp.
 
Method Summary
 edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.RotateScroll.RotateLens getLens()
           
 edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.RotateScroll.RotateDragUI getRotateDragUI()
           
 javax.swing.JScrollBar getRotateSB()
           
 int getRotationAngle()
           
 void graphMoved()
           
 void graphReset()
           
 void incrementRotateAngle(double inc)
           
 void setRotationAngle(int angle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateScroll

public RotateScroll(TGPanel tgp)
Constructor with TGPanel tgp.

Method Detail

getLens

public edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.RotateScroll.RotateLens getLens()

getRotateSB

public javax.swing.JScrollBar getRotateSB()

getRotateDragUI

public edu.ucla.stat.SOCR.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)