org.freehep.swing.graphics
Class PointSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.freehep.swing.graphics.GraphicalSelectionEvent
          extended by org.freehep.swing.graphics.PointSelectionEvent
All Implemented Interfaces:
Serializable

public class PointSelectionEvent
extends GraphicalSelectionEvent

Instances of this class are created when the user graphically selects a point on the screen. This event gives the object which generated this event, as well as a polygon describing the outline of the region and an AffineTransform which can be used to zoom into the selected region.

Version:
$Id: PointSelectionEvent.java 8584 2006-08-10 23:06:37Z duns $
Author:
Charles Loomis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.freehep.swing.graphics.GraphicalSelectionEvent
actionCode, DEFAULT_MODE, NEXT_MODE, NO_ACTION, PICK, PICK_ADD, PREVIOUS_MODE, selection, UNPICK, ZOOM, ZOOM_NEW_VIEW
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PointSelectionEvent(Object source, int actionCode, Point selection, AffineTransform transform)
          The constructor requires the source object and the actual point selected.
 
Method Summary
 
Methods inherited from class org.freehep.swing.graphics.GraphicalSelectionEvent
getActionCode, getSelection, getTransform
 
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

PointSelectionEvent

public PointSelectionEvent(Object source,
                           int actionCode,
                           Point selection,
                           AffineTransform transform)
The constructor requires the source object and the actual point selected. The transform should be the one which will center the display on this point if applied.

Parameters:
source - the Object generating this event
selection - the Point which is selected
transform - the AffineTransform which will center the display on the selected point


Copyright © 2000-2007 FreeHEP. All Rights Reserved.