sgtplot
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 SelectableInterface indicates that object can be selected with a mouse click. To be moveable the object must implement theMoveableinterface.- Since:
- 1.0
- See Also:
Moveable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.awt.RectanglegetBounds()Gets the bounding rectangle in device coordinates.booleanisSelectable()Returns true if the current state is selectable.booleanisSelected()Returns true if the object's selected property is set.voidsetSelectable(boolean select)Set the Selectable property.voidsetSelected(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
-
-
DMelt 3.0 © DataMelt by jWork.ORG