Public Methods | |
| ViewerEvent (Object sourceCanvas, Object viewer, CanvasObject cObj, int objID, double x, double y) | |
| Construct viewer event with given parameters. More... | |
| Object | getViewer () |
| Get the canvas viewer where the event occured. More... | |
| int | getCanvasType () |
| Get the canvas type where the event occured. More... | |
| String | getCanvasTypeName () |
| Get the name of canvas type where the event occured. More... | |
| void | setCanvasType (int t) |
| Set the type of the canvas where the event occured. More... | |
| CanvasObject | getCanvasObject () |
| Get the CanvasObject that is the subject of the event. More... | |
| int | getObjectID () |
| Get the ID of the object that is the subject to the event. More... | |
| double | getXPos () |
| Get the x coordinate of the point where the event occured in the Image Coordinate System. More... | |
| double | getYPos () |
| Get the y coordinate of the point where the event occured in the Image Coordinate System. More... | |
| int | getXPosPcs () |
| Get the x coordinate of the point where the event occured in the pixel coordinate system, i.e. More... | |
| int | getYPosPcs () |
| Get the y coordinate of the point where the event occured in the pixel coordinate system, i.e. More... | |
| int | getPoint () |
| Get the point of the figure where the event occured. More... | |
| void | setPoint (int p) |
| Set the point of the figure where the event occured. More... | |
| String | getProp () |
| Get the name of the visual property that changed. More... | |
| void | setProp (String p) |
| Set the name of the visual property that changed. More... | |
Static Public Attributes | |
| final int | VISUALIZER = 1 |
| The visualizer canvas. More... | |
| final int | EDITOR = 2 |
| The editor canvas. More... | |
|
||||||||||||||||||||||||||||
|
Construct viewer event with given parameters.
|
|
|
Get the canvas viewer where the event occured. The object is an instance of CanvasViewer. |
|
|
Get the canvas type where the event occured.
|
|
|
Get the name of canvas type where the event occured.
|
|
|
Set the type of the canvas where the event occured.
|
|
|
Get the CanvasObject that is the subject of the event. Keep only for the visualization object as the editor may change the object reference. |
|
|
Get the ID of the object that is the subject to the event. TODO: The ID is invalid (== -1) if the subject is a visualization. |
|
|
Get the x coordinate of the point where the event occured in the Image Coordinate System.
|
|
|
Get the y coordinate of the point where the event occured in the Image Coordinate System.
|
|
|
Get the x coordinate of the point where the event occured in the pixel coordinate system, i.e. the integer coordinates of the pixel. |
|
|
Get the y coordinate of the point where the event occured in the pixel coordinate system, i.e. the integer coordinates of the pixel. |
|
|
Get the point of the figure where the event occured.
|
|
|
Set the point of the figure where the event occured.
|
|
|
Get the name of the visual property that changed.
|
|
|
Set the name of the visual property that changed.
|
|
|
The visualizer canvas.
|
|
|
The editor canvas.
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001