com.objex.panywhere.events
Class DragEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.objex.panywhere.events.DragEvent
All Implemented Interfaces:
java.io.Serializable

public class DragEvent
extends java.util.EventObject

Event generated when icons and/or lines are dragged on the pedigree canvas

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DragEvent(java.lang.Object src, Individual[] dragged, double ad_xdelta, double ad_ydelta)
          Create new DragEvent
 
Method Summary
 double getDeltaX()
           
 double getDeltaY()
           
 Individual[] getDraggedIndividuals()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DragEvent

public DragEvent(java.lang.Object src,
                 Individual[] dragged,
                 double ad_xdelta,
                 double ad_ydelta)
Create new DragEvent

Parameters:
src - The source of the event. Usually the control itself
dragged - An array of person that were dragged
ad_xdelta - The distance moved in the x-axis
ad_ydelta - The distance moved in the y-axis
Method Detail

getDraggedIndividuals

public Individual[] getDraggedIndividuals()
Returns:
Individuals that were dragged

getDeltaX

public double getDeltaX()
Returns:
The amount by which the individuals moved in the x direction

getDeltaY

public double getDeltaY()
Returns:
The amount by which the individuals moved in the y direction