public interface CanvasFigure
Modifier and Type | Field and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
Rectangle2D |
getBounds()
Return the bounds of this figure
|
Rectangle2D |
getBoundsWithoutLabel()
Return the bounds of this figure, ignoring the label, if there is one.
|
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(Object o)
Store an arbitrary object with the figure for later reference
|
void |
setVisible(boolean flag)
Set the visibility flag of this object.
|
static final int SELECTED
static final int DESELECTED
static final int RESIZED
static final int MOVED
void setClientData(Object o)
Object getClientData()
boolean isSelected()
boolean isVisible()
Rectangle2D getBounds()
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)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.