Class NewAreaListener

java.lang.Object
   |
   +----java.awt.event.MouseAdapter
           |
           +----VisiMouseListener
                   |
                   +----NewAreaListener

public class NewAreaListener
extends VisiMouseListener
implements MouseListener, MouseMotionListener
Class definition for mouse listener to handle mouse events during the definition of a new area.

Version:
$Revision: 1.5 $, $Date: 2000/10/12 14:07:53 $
Author:
John Cavanaugh

Variable Index

 o config
The configuration being altered.
 o newArea
The new area being defined.
 o newAreaCorner
The first-established corner of the new area.

Constructor Index

 o NewAreaListener(VisiFrame, DisplayCanvas, VisiConfig)
Constructs a new area listener.

Method Index

 o mouseClicked(MouseEvent)
Handle a mouse click.
 o mouseDragged(MouseEvent)
Handle the mouse being dragged with a button pressed.
 o mouseMoved(MouseEvent)
Handle a mouse movement with no button pressed.
 o mousePressed(MouseEvent)
Handle a mouse button press.
 o mouseReleased(MouseEvent)
Handle a mouse button release.

Variables

 o config
 private VisiConfig config
The configuration being altered.

 o newArea
 private Area newArea
The new area being defined.

 o newAreaCorner
 private Point newAreaCorner
The first-established corner of the new area.

Constructors

 o NewAreaListener
 public NewAreaListener(VisiFrame frame,
                        DisplayCanvas canvas,
                        VisiConfig config)
Constructs a new area listener.

Parameters:
frame - the parent frame.
config - the configuration being displayed.

Methods

 o mouseClicked
 public void mouseClicked(MouseEvent e)
Handle a mouse click.

Parameters:
e - the event that caused the method to be invoked.
Overrides:
mouseClicked in class MouseAdapter
 o mousePressed
 public void mousePressed(MouseEvent e)
Handle a mouse button press.

Parameters:
e - the event that caused the method to be invoked.
Overrides:
mousePressed in class MouseAdapter
 o mouseReleased
 public void mouseReleased(MouseEvent e)
Handle a mouse button release.

Parameters:
e - the event that caused the method to be invoked.
Overrides:
mouseReleased in class MouseAdapter
 o mouseDragged
 public void mouseDragged(MouseEvent e)
Handle the mouse being dragged with a button pressed.

Parameters:
e - the event that caused the method to be invoked.
Overrides:
mouseDragged in class VisiMouseListener
 o mouseMoved
 public void mouseMoved(MouseEvent e)
Handle a mouse movement with no button pressed.

Parameters:
e - the event that caused the method to be invoked.
Overrides:
mouseMoved in class VisiMouseListener