|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CanvasFigure
This defines an abstract interface for figures drawn on a canvas.
Field Summary | |
---|---|
static int |
DESELECTED
Indicates that the figure was deselected |
static int |
MOVED
Indicates that the figure was dragged |
static int |
RESIZED
Indicates that the figure was resized |
static int |
SELECTED
Indicates that the figure was selected |
Method Summary | |
---|---|
void |
addCanvasFigureListener(CanvasFigureListener listener)
Add a listener for events on the canvas figure |
void |
addSlave(CanvasFigure fig)
Add a slave figure. |
void |
fireCanvasFigureEvent(int eventType)
Fire an event on the canvas figure. |
java.awt.geom.Rectangle2D |
getBounds()
Return the bounds of this figure |
java.awt.geom.Rectangle2D |
getBoundsWithoutLabel()
Return the bounds of this figure, ignoring the label, if there is one. |
java.lang.Object |
getClientData()
Return the client data object, or null if none was set |
boolean |
isSelected()
Return true if the figure is selected. |
boolean |
isVisible()
Test the visibility flag of this object. |
void |
removeCanvasFigureListener(CanvasFigureListener listener)
Remove a listener for events on the canvas figure |
void |
setClientData(java.lang.Object o)
Store an arbitrary object with the figure for later reference |
void |
setVisible(boolean flag)
Set the visibility flag of this object. |
Field Detail |
---|
static final int SELECTED
static final int DESELECTED
static final int RESIZED
static final int MOVED
Method Detail |
---|
void setClientData(java.lang.Object o)
java.lang.Object getClientData()
boolean isSelected()
boolean isVisible()
java.awt.geom.Rectangle2D getBounds()
java.awt.geom.Rectangle2D getBoundsWithoutLabel()
void setVisible(boolean flag)
void addCanvasFigureListener(CanvasFigureListener listener)
void removeCanvasFigureListener(CanvasFigureListener listener)
void fireCanvasFigureEvent(int eventType)
eventType
- one of SELECTED, DESELECTED, RESIZED, MOVEDvoid addSlave(CanvasFigure fig)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |