gov.noaa.pmel.sgt
Interface Moveable

All Known Implementing Classes:
LineKey, Logo, PointCollectionKey, SGLabel, VectorKey

public interface Moveable

Interface indicates that object can be moved with a mouse drag. Objects are notified of movement via the PropertyChange mechanism.

Since:
2.0
Version:
$Revision$, $Date$
Author:
Donald Denbo

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Add a new PropertyChangeListener.
 java.awt.Rectangle getBounds()
          Gets the bounding rectangle in device coordinates.
 java.awt.Point getLocation()
          Gets the location in device coordinates.
 boolean isMoveable()
          Returns true if the current state is moveable
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Remove a listener.
 void setLocation(java.awt.Point point)
          Sets the location in device coordinates.
 void setMoveable(boolean move)
          Set the moveable property.
 

Method Detail

getBounds

java.awt.Rectangle getBounds()
Gets the bounding rectangle in device coordinates.

Returns:
bounding rectangle
Since:
2.0

getLocation

java.awt.Point getLocation()
Gets the location in device coordinates.

Returns:
location
Since:
2.0

setLocation

void setLocation(java.awt.Point point)
Sets the location in device coordinates.

Since:
2.0

isMoveable

boolean isMoveable()
Returns true if the current state is moveable

Returns:
true if moveable
Since:
2.0

setMoveable

void setMoveable(boolean move)
Set the moveable property.

Parameters:
select - if true object is moveable
Since:
2.0

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a new PropertyChangeListener. Properties will include "moved". Implementation of the following two methods will normally be via the PropertyChangeSupport class.

Since:
2.0

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener.

Since:
2.0