source: ether_statistics/service/implementation/gov/noaa/pmel/sgt/Moveable.java @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 2.0 KB
Line 
1/*
2 * $Id: Moveable.java,v 1.3 2001/02/02 17:25:42 dwd Exp $
3 *
4 * This software is provided by NOAA for full, free and open release.  It is
5 * understood by the recipient/user that NOAA assumes no liability for any
6 * errors contained in the code.  Although this software is released without
7 * conditions or restrictions in its use, it is expected that appropriate
8 * credit be given to its author and to the National Oceanic and Atmospheric
9 * Administration should the software be included by the recipient as an
10 * element in other product development.
11 */
12 
13package gov.noaa.pmel.sgt;
14
15import java.awt.Point;
16import java.awt.Rectangle;
17import java.beans.PropertyChangeListener;
18 
19/**
20 * Interface indicates that object can be moved with a mouse drag.
21 * Objects are notified of movement via the PropertyChange mechanism.
22 *
23 * @author Donald Denbo
24 * @version $Revision: 1.3 $, $Date: 2001/02/02 17:25:42 $
25 * @since 2.0
26 */
27public interface Moveable {
28  /**
29   * Gets the bounding rectangle in device coordinates.
30   *
31   * @since 2.0
32   * @return bounding rectangle
33   */
34  public Rectangle getBounds();
35  /**
36   * Gets the location in device coordinates.
37   *
38   * @since 2.0
39   * @return location
40   */
41  public Point getLocation();
42  /**
43   * Sets the location in device coordinates.
44   * @since 2.0
45   *
46   */
47  public void setLocation(Point point);
48  /**
49   * Returns true if the current state is moveable
50   *
51   * @since 2.0
52   * @return true if moveable
53   */
54  public boolean isMoveable();
55  /**
56   * Set the moveable property.
57   *
58   * @since 2.0
59   * @param select if true object is moveable
60   */
61  public void setMoveable(boolean move);
62  /**
63   * Add a new PropertyChangeListener.  Properties will include
64   * "moved".  Implementation of the following two methods will
65   * normally be via the PropertyChangeSupport class.
66   * @since 2.0
67   */
68  public void addPropertyChangeListener(PropertyChangeListener l);
69  /**
70   * Remove a listener.
71   * @since 2.0
72   */
73  public void removePropertyChangeListener(PropertyChangeListener l);
74}
Note: See TracBrowser for help on using the repository browser.