org.freehep.swing.graphics
Class RegionSelectionEvent

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

public class RegionSelectionEvent
extends GraphicalSelectionEvent

Instances of this class are created when the user graphically selects a region 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: RegionSelectionEvent.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
RegionSelectionEvent(Object source, int actionCode, Polygon selection, AffineTransform transform)
          The constructor requires the source object, the selection type, and the actual selection.
 
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

RegionSelectionEvent

public RegionSelectionEvent(Object source,
                            int actionCode,
                            Polygon selection,
                            AffineTransform transform)
The constructor requires the source object, the selection type, and the actual selection.

Parameters:
source - the Object which generates this event
selection - a Polygon describing the outline of the region
transform - an AffineTransform appropriate for zooming into the selected region


Copyright © 2000-2007 FreeHEP. All Rights Reserved.