gov.noaa.pmel.sgt
Interface Moveable

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

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: 1.3 $, $Date: 2001/02/02 17:25:42 $
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

public java.awt.Rectangle getBounds()
Gets the bounding rectangle in device coordinates.
Returns:
bounding rectangle
Since:
2.0

getLocation

public java.awt.Point getLocation()
Gets the location in device coordinates.
Returns:
location
Since:
2.0

setLocation

public void setLocation(java.awt.Point point)
Sets the location in device coordinates.
Since:
2.0

isMoveable

public boolean isMoveable()
Returns true if the current state is moveable
Returns:
true if moveable
Since:
2.0

setMoveable

public void setMoveable(boolean move)
Set the moveable property.
Parameters:
select - if true object is moveable
Since:
2.0

addPropertyChangeListener

public 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

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a listener.
Since:
2.0


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001