|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Drawable
These are the objects that the DrawingPanel manipulates.
DrawingPanel| Method Summary | |
|---|---|
void |
draw(Graphics2D g,
Point2D location)
draw offset from the specified location |
Rectangle |
getBounds()
get the bounding box |
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 |
| Method Detail |
|---|
void draw(Graphics2D g,
Point2D location)
g - location - Rectangle getBounds()
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||