org.opensourcephysics.cabrillo.tracker
Class TMouseHandler

java.lang.Object
  extended by org.opensourcephysics.cabrillo.tracker.TMouseHandler
All Implemented Interfaces:
InteractiveMouseHandler

public class TMouseHandler
extends java.lang.Object
implements InteractiveMouseHandler

A general purpose mouse handler for a trackerPanel.

Author:
Douglas Brown

Constructor Summary
TMouseHandler()
           
 
Method Summary
protected  AutoTracker.KeyFrame getActiveKeyFrame(AutoTracker autoTracker)
           
 void handleMouseAction(InteractivePanel panel, java.awt.event.MouseEvent e)
          Handles a mouse action for a tracker panel.
protected static boolean isAutoTrackTrigger(java.awt.event.InputEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TMouseHandler

public TMouseHandler()
Method Detail

handleMouseAction

public void handleMouseAction(InteractivePanel panel,
                              java.awt.event.MouseEvent e)
Handles a mouse action for a tracker panel.

Specified by:
handleMouseAction in interface InteractiveMouseHandler
Parameters:
panel - the tracker panel
e - the mouse event

isAutoTrackTrigger

protected static boolean isAutoTrackTrigger(java.awt.event.InputEvent e)

getActiveKeyFrame

protected AutoTracker.KeyFrame getActiveKeyFrame(AutoTracker autoTracker)