public abstract class SelectableShape extends java.lang.Object implements SceneShape
| Constructor and Description |
|---|
SelectableShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawSelection(java.awt.Graphics2D g2)
Draws the selection adornment of this item.
|
boolean |
isSelected()
Gets the selection state of this item.
|
void |
setSelected(boolean b)
Sets the selection state of this item.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, draw, translatepublic SelectableShape()
public void setSelected(boolean b)
SceneShapesetSelected in interface SceneShapeb - true if this item is selectedpublic boolean isSelected()
SceneShapeisSelected in interface SceneShapepublic void drawSelection(java.awt.Graphics2D g2)
SceneShapedrawSelection in interface SceneShapeg2 - the graphics context