/*
 * $Id: Draggable.java,v 1.7 2002/06/20 16:33:21 dwd Exp $
 *
 * This software is provided by NOAA for full, free and open release.  It is
 * understood by the recipient/user that NOAA assumes no liability for any
 * errors contained in the code.  Although this software is released without
 * conditions or restrictions in its use, it is expected that appropriate
 * credit be given to its author and to the National Oceanic and Atmospheric
 * Administration should the software be included by the recipient as an
 * element in other product development.
 */

package sgtplot.swing;

import java.awt.Point;
/**
 * Draggable defines an interface to allow classes to be
 *  imaged separately in a Layer from other classes.
 *  The interface is sufficient to allow dragging in a
 * JLayeredPane  (JPane).
 *
 * @author Donald Denbo
 * @version $Revision: 1.7 $, $Date: 2002/06/20 16:33:21 $
 * @since 2.0
 */
public interface Draggable {
  /**
   * Set the location of the Draggable object. Change in
   * location will not be vetoed.
   */
  public void setLocationNoVeto(int x, int y);
  /**
   * Set the location of the Draggable object.
   */
  public void setLocation(Point loc);
  /**
   * Set the location of the Draggable object and optionally don't
   * fire a PropertyChangeEvent
   *
   * @since 3.0
   */
   public void setLocation(Point loc, boolean fireEvent);
}

 

Ads help maintain this website.