FreeHEP API
Version current

org.freehep.swing.graphics
Class PointSelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.freehep.swing.graphics.GraphicalSelectionEvent
          extended byorg.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,v 1.4 2001/04/03 10:25:37 loomis Exp $
Author:
Charles Loomis
See Also:
Serialized Form
Source Code:
PointSelectionEvent.java

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.
 
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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.