sgtplot
Interface Moveable
-
- All Known Implementing Classes:
- LineKey, Logo, PointCollectionKey, SGLabel, VectorKey
public interface MoveableInterface indicates that object can be moved with a mouse drag. Objects are notified of movement via the PropertyChange mechanism.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Add a new PropertyChangeListener.java.awt.RectanglegetBounds()Gets the bounding rectangle in device coordinates.java.awt.PointgetLocation()Gets the location in device coordinates.booleanisMoveable()Returns true if the current state is moveablevoidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Remove a listener.voidsetLocation(java.awt.Point point)Sets the location in device coordinates.voidsetMoveable(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
-
-
DMelt 3.0 © DataMelt by jWork.ORG