public abstract class SelectableShape extends java.lang.Object implements SceneShape
Modifier and Type | Field and Description |
---|---|
private boolean |
selected |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, draw, translate
private boolean selected
public SelectableShape()
public void setSelected(boolean b)
SceneShape
setSelected
in interface SceneShape
b
- true if this item is selectedpublic boolean isSelected()
SceneShape
isSelected
in interface SceneShape
public void drawSelection(java.awt.Graphics2D g2)
SceneShape
drawSelection
in interface SceneShape
g2
- the graphics context