edu.stanford.hci.r3.browse
Class HorizontalPanEventHandler

java.lang.Object
  extended by PDragSequenceEventHandler
      extended by edu.stanford.hci.r3.browse.HorizontalPanEventHandler

public class HorizontalPanEventHandler
extends PDragSequenceEventHandler

A custom pan event handler...

This software is distributed under the BSD License.


Constructor Summary
HorizontalPanEventHandler()
           
 
Method Summary
protected  void drag(PInputEvent e)
           
protected  void dragActivityStep(PInputEvent aEvent)
          Do auto panning even when the mouse is not moving.
 boolean getAutopan()
           
protected  void pan(PInputEvent e)
           
protected  java.lang.String paramString()
          Returns a string representing the state of this node.
 void setAutopan(boolean autopan)
           
 void setMaxAutopanSpeed(double maxAutopanSpeed)
          Set the maxAutoPan speed in pixes per second.
 void setMinAutopanSpeed(double minAutopanSpeed)
          Set the minAutoPan speed in pixels per second.
protected  double validatePanningSpeed(double delta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalPanEventHandler

public HorizontalPanEventHandler()
Method Detail

drag

protected void drag(PInputEvent e)

pan

protected void pan(PInputEvent e)

setAutopan

public void setAutopan(boolean autopan)

getAutopan

public boolean getAutopan()

setMinAutopanSpeed

public void setMinAutopanSpeed(double minAutopanSpeed)
Set the minAutoPan speed in pixels per second.

Parameters:
minAutopanSpeed -

setMaxAutopanSpeed

public void setMaxAutopanSpeed(double maxAutopanSpeed)
Set the maxAutoPan speed in pixes per second.

Parameters:
maxAutopanSpeed -

dragActivityStep

protected void dragActivityStep(PInputEvent aEvent)
Do auto panning even when the mouse is not moving.


validatePanningSpeed

protected double validatePanningSpeed(double delta)

paramString

protected java.lang.String paramString()
Returns a string representing the state of this node. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Returns:
a string representation of this node's state

Copyright 2006 Stanford University