Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ViewerEvent Class Reference

Indicates that something happened in a CanvasViewer. More...

List of all members.

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...


Detailed Description

Indicates that something happened in a CanvasViewer.


Constructor & Destructor Documentation

ViewerEvent::ViewerEvent Object    sourceCanvas,
Object    viewer,
CanvasObject    cObj,
int    objID,
double    x,
double    y
[inline]
 

Construct viewer event with given parameters.


Member Function Documentation

Object ViewerEvent::getViewer   [inline]
 

Get the canvas viewer where the event occured.

The object is an instance of CanvasViewer.

int ViewerEvent::getCanvasType   [inline]
 

Get the canvas type where the event occured.

String ViewerEvent::getCanvasTypeName   [inline]
 

Get the name of canvas type where the event occured.

void ViewerEvent::setCanvasType int    t [inline]
 

Set the type of the canvas where the event occured.

CanvasObject ViewerEvent::getCanvasObject   [inline]
 

Get the CanvasObject that is the subject of the event.

Keep only for the visualization object as the editor may change the object reference.

int ViewerEvent::getObjectID   [inline]
 

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.

double ViewerEvent::getXPos   [inline]
 

Get the x coordinate of the point where the event occured in the Image Coordinate System.

double ViewerEvent::getYPos   [inline]
 

Get the y coordinate of the point where the event occured in the Image Coordinate System.

int ViewerEvent::getXPosPcs   [inline]
 

Get the x coordinate of the point where the event occured in the pixel coordinate system, i.e.

the integer coordinates of the pixel.

int ViewerEvent::getYPosPcs   [inline]
 

Get the y coordinate of the point where the event occured in the pixel coordinate system, i.e.

the integer coordinates of the pixel.

int ViewerEvent::getPoint   [inline]
 

Get the point of the figure where the event occured.

void ViewerEvent::setPoint int    p [inline]
 

Set the point of the figure where the event occured.

String ViewerEvent::getProp   [inline]
 

Get the name of the visual property that changed.

void ViewerEvent::setProp String    p [inline]
 

Set the name of the visual property that changed.


Member Data Documentation

final int ViewerEvent::VISUALIZER = 1 [static]
 

The visualizer canvas.

final int ViewerEvent::EDITOR = 2 [static]
 

The editor canvas.


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:28 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001