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
-
config
- The configuration being altered.
-
newArea
- The new area being defined.
-
newAreaCorner
- The first-established corner of the new area.
-
NewAreaListener(VisiFrame, DisplayCanvas, VisiConfig)
- Constructs a new area listener.
-
mouseClicked(MouseEvent)
- Handle a mouse click.
-
mouseDragged(MouseEvent)
- Handle the mouse being dragged with a button pressed.
-
mouseMoved(MouseEvent)
- Handle a mouse movement with no button pressed.
-
mousePressed(MouseEvent)
- Handle a mouse button press.
-
mouseReleased(MouseEvent)
- Handle a mouse button release.
config
private VisiConfig config
- The configuration being altered.
newArea
private Area newArea
- The new area being defined.
newAreaCorner
private Point newAreaCorner
- The first-established corner of the new area.
NewAreaListener
public NewAreaListener(VisiFrame frame,
DisplayCanvas canvas,
VisiConfig config)
- Constructs a new area listener.
- Parameters:
- frame - the parent frame.
- config - the configuration being displayed.
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
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
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
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
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