org.jscience.architecture.traffic.tools
Class ScrollAction

java.lang.Object
  extended by org.jscience.architecture.traffic.tools.ScrollAction
All Implemented Interfaces:
ToolAction

public class ScrollAction
extends java.lang.Object
implements ToolAction

This implements scroll user action (like in acrobat reader)


Field Summary
protected  boolean skipnext
          DOCUMENT ME!
protected  java.awt.Point startPoint
          DOCUMENT ME!
protected  java.awt.Point startScrollPoint
          DOCUMENT ME!
protected  ViewScroller viewScroller
          DOCUMENT ME!
 
Constructor Summary
ScrollAction(ViewScroller vs)
          Creates a new ScrollAction object.
 
Method Summary
 boolean beingUsed()
          DOCUMENT ME!
 void doScroll(View view, java.awt.Point p)
          DOCUMENT ME!
 void endScroll(View view, java.awt.Point p)
          DOCUMENT ME!
 boolean startScroll(View view, java.awt.Point p)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startPoint

protected java.awt.Point startPoint
DOCUMENT ME!


startScrollPoint

protected java.awt.Point startScrollPoint
DOCUMENT ME!


viewScroller

protected ViewScroller viewScroller
DOCUMENT ME!


skipnext

protected boolean skipnext
DOCUMENT ME!

Constructor Detail

ScrollAction

public ScrollAction(ViewScroller vs)
Creates a new ScrollAction object.

Parameters:
vs - DOCUMENT ME!
Method Detail

beingUsed

public boolean beingUsed()
DOCUMENT ME!

Specified by:
beingUsed in interface ToolAction
Returns:
DOCUMENT ME!

startScroll

public boolean startScroll(View view,
                           java.awt.Point p)
DOCUMENT ME!

Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!
Returns:
DOCUMENT ME!

doScroll

public void doScroll(View view,
                     java.awt.Point p)
DOCUMENT ME!

Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!

endScroll

public void endScroll(View view,
                      java.awt.Point p)
DOCUMENT ME!

Parameters:
view - DOCUMENT ME!
p - DOCUMENT ME!