// Charles A. Loomis, Jr., and University of California, Santa Cruz,
// Copyright (c) 2000
package org.freehep.swing.graphics;

import java.awt.Point;
import java.awt.geom.AffineTransform;

/**
 * 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.
 *
 * @author Charles Loomis
 * @version $Id: PointSelectionEvent.java,v 1.1.1.1 2004/05/31 05:08:49 kuromaru Exp $ */
public class PointSelectionEvent
    extends GraphicalSelectionEvent {

    /**
     * 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.
     *
     * @param source the Object generating this event
     * @param selection the Point which is selected 
     * @param transform the AffineTransform which will center the
     * display on the selected point */
    public PointSelectionEvent(Object source, 
                               int actionCode,
                               Point selection,
                               AffineTransform transform) {
        super(source,actionCode,selection,transform);
    }

}
