com.objex.panywhere.events
Class DragEvent
java.lang.Object
java.util.EventObject
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
| 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 |
| 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 |
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 itselfdragged - An array of person that were draggedad_xdelta - The distance moved in the x-axisad_ydelta - The distance moved in the y-axis
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