gov.noaa.pmel.sgt
Interface Selectable

All Known Subinterfaces:
DataKey, LayerChild
All Known Implementing Classes:
Axis, ColorKey, LineKey, LogAxis, Logo, PlainAxis, PointCollectionKey, Ruler, SGLabel, SpaceAxis, TimeAxis, UserIcon, ValueIcon, VectorKey

public interface Selectable

Interface indicates that object can be selected with a mouse click. To be moveable the object must implement the Moveable interface.

Since:
1.0
Version:
$Revision$, $Date$
Author:
Donald Denbo
See Also:
Moveable

Method Summary
 java.awt.Rectangle getBounds()
          Gets the bounding rectangle in device coordinates.
 boolean isSelectable()
          Returns true if the current state is selectable.
 boolean isSelected()
          Returns true if the object's selected property is set.
 void setSelectable(boolean select)
          Set the Selectable property.
 void setSelected(boolean sel)
          Sets the selected property.
 

Method Detail

setSelected

void setSelected(boolean sel)
Sets the selected property.

Parameters:
sel - true if selected, false if not.

isSelected

boolean isSelected()
Returns true if the object's selected property is set.

Returns:
true if selected, false if not.

getBounds

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

Returns:
bounding rectangle

isSelectable

boolean isSelectable()
Returns true if the current state is selectable.

Returns:
true if selectable

setSelectable

void setSelectable(boolean select)
Set the Selectable property.

Parameters:
select - if true object is selectable