org.opensourcephysics.sip.ch05
Class MouseApp

java.lang.Object
  extended by org.opensourcephysics.sip.ch05.MouseApp
All Implemented Interfaces:
InteractiveMouseHandler

public class MouseApp
extends java.lang.Object
implements InteractiveMouseHandler

MouseApp demonstrates how to handle actions from an interactive drawing panel.


Constructor Summary
MouseApp()
          Constructs the MouseApp.
 
Method Summary
 void handleMouseAction(InteractivePanel panel, java.awt.event.MouseEvent evt)
          Handles mouse actions in the plot frame.
static void main(java.lang.String[] args)
          Starts the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseApp

public MouseApp()
Constructs the MouseApp.

Method Detail

handleMouseAction

public void handleMouseAction(InteractivePanel panel,
                              java.awt.event.MouseEvent evt)
Handles mouse actions in the plot frame.

Specified by:
handleMouseAction in interface InteractiveMouseHandler
Parameters:
panel -
evt -

main

public static void main(java.lang.String[] args)
Starts the program.

Parameters:
args -