com.objex.panywhere
Class PedigreeMouseMotionListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by com.objex.panywhere.PedigreeMouseMotionListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.MouseInputListener

public class PedigreeMouseMotionListener
extends javax.swing.event.MouseInputAdapter


Constructor Summary
PedigreeMouseMotionListener(com.objex.panywhere.Pedigree aPedigree, java.util.ResourceBundle aResourseBundle)
          Creates a new instance of PedigreeMouseMotionListener
 
Method Summary
 void doMouseClicked(java.awt.event.MouseEvent aEvent)
          Processes mouse Click Events occurring on the Pedigree.
protected  void doMouseReleased(java.awt.event.MouseEvent aEvent)
          Invoked when a mouse Button has been released on the Pedigree.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
          Tracks mouse drag events and controls the painting parameters for the Pedigree while the mouse is being dragged
 void mouseMoved(java.awt.event.MouseEvent e)
          Tracks and processes mouse movement events on the Pedigree canvas
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
          Processes mouse Released events after the mouse was dragged.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseEntered, mouseExited
 

Constructor Detail

PedigreeMouseMotionListener

public PedigreeMouseMotionListener(com.objex.panywhere.Pedigree aPedigree,
                                   java.util.ResourceBundle aResourseBundle)
Creates a new instance of PedigreeMouseMotionListener

Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Processes mouse Released events after the mouse was dragged. The actions taken depend on what the mouse dragging action was aimed at e.g. if the mouse drag was dragging individual(s), then the action on mouse release is to move the dragged Individual to their respective new positions. If the mouse drag was meant to connect Individuals through a relationship operation, then the respective add Operation is performed on mouse release. In all cases, the variables set in mouse pressed and changed in MouseDraggeed() are reset to their default values.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Tracks and processes mouse movement events on the Pedigree canvas

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseAdapter

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Tracks mouse drag events and controls the painting parameters for the Pedigree while the mouse is being dragged

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class java.awt.event.MouseAdapter

doMouseClicked

public void doMouseClicked(java.awt.event.MouseEvent aEvent)
Processes mouse Click Events occurring on the Pedigree. Typical actions include trying to find an Individual, Allele or Line on the mouseClick location or adding Individual if an OCA handle is found at the MouseClick location.


doMouseReleased

protected void doMouseReleased(java.awt.event.MouseEvent aEvent)
Invoked when a mouse Button has been released on the Pedigree. Depending on whether or not an Individual Icon is found at such location, a general popup menu or an Individual popup menu is displayed for the user to select further action that may be required.