public interface SceneShape
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.geom.Point2D p)
Tests whether this item contains a given point.
|
void |
draw(java.awt.Graphics2D g2)
Draws this item.
|
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.
|
void |
translate(int dx,
int dy)
Translates this item by a given amount.
|
void draw(java.awt.Graphics2D g2)
g2
- the graphics contextvoid drawSelection(java.awt.Graphics2D g2)
g2
- the graphics contextvoid setSelected(boolean b)
b
- true if this item is selectedboolean isSelected()
void translate(int dx, int dy)
dx
- the amount to translate in x-directiondy
- the amount to translate in y-directionboolean contains(java.awt.geom.Point2D p)
p
- a point