public interface Drawable
DrawingPanel
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.Point2D location)
draw offset from the specified location
|
java.awt.Rectangle |
getBounds()
get the bounding box
|
java.lang.String |
getName()
get the name
|
boolean |
isActive()
return true if Active
|
boolean |
isSelected()
return true if selected
|
void |
setPosition(int x,
int y)
set the offset position
|
void |
setSelected(boolean select)
set whether selected
|
void |
setSize(int width,
int height)
set the bounding box
|
void draw(java.awt.Graphics2D g, java.awt.geom.Point2D location)
g
- location
- java.awt.Rectangle getBounds()
java.lang.String getName()
boolean isSelected()
boolean isActive()
void setPosition(int x, int y)
x
- y
- void setSelected(boolean select)
select
- void setSize(int width, int height)
width
- height
-