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

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

public class ZoomScroll
extends java.lang.Object
implements GraphListener

ZoomScroll: Contains code for enlarging the graph by zooming in.

Version:
1.21 $Id: ZoomScroll.java,v 1.1 2010/01/20 20:38:32 jiecui Exp $
Author:
Alexander Shapiro

Field Summary
protected  edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.ZoomScroll.ZoomLens zoomLens
           
 
Constructor Summary
ZoomScroll(TGPanel tgp)
          Constructor with TGPanel tgp.
 
Method Summary
 edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.ZoomScroll.ZoomLens getLens()
           
 javax.swing.JScrollBar getZoomSB()
           
 int getZoomValue()
           
 void graphMoved()
           
 void graphReset()
           
 void setZoomValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

zoomLens

protected edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.ZoomScroll.ZoomLens zoomLens
Constructor Detail

ZoomScroll

public ZoomScroll(TGPanel tgp)
Constructor with TGPanel tgp.

Method Detail

getZoomSB

public javax.swing.JScrollBar getZoomSB()

getLens

public edu.ucla.stat.SOCR.touchgraph.graphlayout.interaction.ZoomScroll.ZoomLens getLens()

graphMoved

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

graphReset

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

getZoomValue

public int getZoomValue()

setZoomValue

public void setZoomValue(int value)