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

MultiViewer Class Reference

A viewer with multiple viewports. More...

Inheritance diagram for MultiViewer::

ButtonBarListener ViewerModeListener ViewerDialogUser ZoomerUser List of all members.

Public Methods

 MultiViewer (int x, int y)
 Construct a viewer with x times y viewports. More...

int getMode ()
 Get the viewer mode (see class ViewerMode). More...

int getSubMode ()
 Get the viewer sub-mode (see class ViewerMode). More...

void setMode (int mode, int subMode)
 Set the viewer mode (see class ViewerMode) for all viewers. More...

boolean isEnabledMode (int mode)
 Check whether the given viewer mode (see class ViewerMode) is enabled. More...

void setEnableMode (int mode, boolean b)
 Set whether the given viewer mode (see class ViewerMode) is enabled. More...

Color getDefaultDrawColor ()
 Get the default drawing color of the active viewer. More...

Color getDefaultDrawColor (int viewID)
 Get the default drawing color of the given viewer. More...

void setDefaultDrawColor (Color c)
 Set the default drawing color of all viewers. More...

void setDefaultDrawColor (Color c, int viewID)
 Set the default drawing color of the given viewer. More...

Color getBackgroundColor ()
 Get the background color of the active viewer. More...

Color getBackgroundColor (int viewID)
 Get the background color of the given viewer. More...

void setBackgroundColor (Color c)
 Set the background color of all viewers. More...

void setBackgroundColor (Color c, int viewID)
 Set the background color of the given viewer. More...

int nrOfViewers ()
 Returns the number of viewers in the MultiViewer. More...

boolean validViewer (int viewID)
 Indicate whether the given ID belongs to one of the viewers. More...

int getActiveViewer ()
 Get the ID of the active viewer. More...

void setActiveViewer (int viewID)
 Set the active viewer. More...

void addViewerListener (ViewerListener l)
 Add a viewer listener. More...

void removeViewerListener (ViewerListener l)
 Remove a viewer listener. More...

void doClear ()
 Clear all viewers. More...

void doClear (int viewID)
 Clear the given viewer. More...

Image toImage (int viewID)
 Render the canvas of the viewer in an image. More...

int addObject (CanvasObject obj, int viewID)
 Add a CanvasObject to the viewer. More...

CanvasObject getObject (int objID, int viewID)
 Get the CanvasObject with the given index. More...

CanvasObject getObjectCopy (int objID, int viewID, boolean ics)
 Get a copy of the CanvasObject with the given index. More...

void removeObject (int objID, int viewID)
 Remove given object from the viewer. More...

void mousePressed (MouseEvent e)
 Implementation of MouseListener interface. More...

void mouseReleased (MouseEvent e)
 Implementation of MouseListener interface. More...

void mouseClicked (MouseEvent e)
void mouseEntered (MouseEvent e)
void mouseExited (MouseEvent e)
void viewerSelected (ViewerEvent e)
 Implementation of ViewerListener interface. More...

void objectSelected (ViewerEvent e)
 Implementation of ViewerListener interface. More...

void viewerEntered (ViewerEvent e)
 Implementation of ViewerListener interface. More...

void viewerExited (ViewerEvent e)
void objectEntered (ViewerEvent e)
void objectProbed (ViewerEvent e)
void objectCreated (ViewerEvent e)
void objectDeleted (ViewerEvent e)
void objectMoved (ViewerEvent e)
void objectResized (ViewerEvent e)
void objectReshaped (ViewerEvent e)
void objectChangedVisually (ViewerEvent e)
void buttonPressed (ButtonBarEvent e)
 Implementation of ButtonBarListener. More...

void viewerModeChanged (ViewerModeEvent e)
 Implementation of ViewerModeListener. More...

void copyObjectAcrossViewer (int objID, int source, int dest)
void handleViewerDialogClear (int viewID)
 Implementation of ViewerDialogUser. More...

void handleViewerDialogDone ()
 Implementation of ViewerDialogUser. More...

void handleViewerDialogPointed (int viewID, double x, double y)
 Implementation of ViewerDialogUser. More...

void handleViewerDialogSelected (int viewID)
 Implementation of ViewerDialogUser. More...

void handleViewerDialogZoomed (int viewID, double zoomVal)
 Implementation of ViewerDialogUser. More...

void handleViewerDialogBackColor (int viewID, Color c)
 Implementation of ViewerDialogUser. More...

void handleViewerDialogDrawColor (int viewID, Color c)
 Implementation of ViewerDialogUser. More...

void handleZoomed (double zoomVal)
 Implementation of ZoomerUser. More...


Detailed Description

A viewer with multiple viewports.

Basically, a MultiViewer consists of a set of SimpleViewers. The additional interface components (such as the Zoomer) apply to all viewers. However, the included ViewerDialog allows for manipulation of a single viewer at a time.


Constructor & Destructor Documentation

MultiViewer::MultiViewer (  int    x,
int    y
)  [inline]
 

Construct a viewer with x times y viewports.


Member Function Documentation

int MultiViewer::getMode (    )  [inline]
 

Get the viewer mode (see class ViewerMode).

int MultiViewer::getSubMode (    )  [inline]
 

Get the viewer sub-mode (see class ViewerMode).

void MultiViewer::setMode (  int    mode,
int    subMode
)  [inline]
 

Set the viewer mode (see class ViewerMode) for all viewers.

boolean MultiViewer::isEnabledMode (  int    mode )  [inline]
 

Check whether the given viewer mode (see class ViewerMode) is enabled.

void MultiViewer::setEnableMode (  int    mode,
boolean    b
)  [inline]
 

Set whether the given viewer mode (see class ViewerMode) is enabled.

Color MultiViewer::getDefaultDrawColor (    )  [inline]
 

Get the default drawing color of the active viewer.

Color MultiViewer::getDefaultDrawColor (  int    viewID )  [inline]
 

Get the default drawing color of the given viewer.

void MultiViewer::setDefaultDrawColor (  Color    c )  [inline]
 

Set the default drawing color of all viewers.

void MultiViewer::setDefaultDrawColor (  Color    c,
int    viewID
)  [inline]
 

Set the default drawing color of the given viewer.

Color MultiViewer::getBackgroundColor (    )  [inline]
 

Get the background color of the active viewer.

Color MultiViewer::getBackgroundColor (  int    viewID )  [inline]
 

Get the background color of the given viewer.

void MultiViewer::setBackgroundColor (  Color    c )  [inline]
 

Set the background color of all viewers.

void MultiViewer::setBackgroundColor (  Color    c,
int    viewID
)  [inline]
 

Set the background color of the given viewer.

int MultiViewer::nrOfViewers (    )  [inline]
 

Returns the number of viewers in the MultiViewer.

boolean MultiViewer::validViewer (  int    viewID )  [inline]
 

Indicate whether the given ID belongs to one of the viewers.

int MultiViewer::getActiveViewer (    )  [inline]
 

Get the ID of the active viewer.

void MultiViewer::setActiveViewer (  int    viewID )  [inline]
 

Set the active viewer.

void MultiViewer::addViewerListener (  ViewerListener    l )  [inline]
 

Add a viewer listener.

void MultiViewer::removeViewerListener (  ViewerListener    l )  [inline]
 

Remove a viewer listener.

void MultiViewer::doClear (    )  [inline]
 

Clear all viewers.

void MultiViewer::doClear (  int    viewID )  [inline]
 

Clear the given viewer.

Image MultiViewer::toImage (  int    viewID )  [inline]
 

Render the canvas of the viewer in an image.

int MultiViewer::addObject (  CanvasObject    obj,
int    viewID
)  [inline]
 

Add a CanvasObject to the viewer.

Returns the index of the object. The index is the preferred way to access objects in a viewer as direct references to objects may become invalid due to internal activities of the viewer.

CanvasObject MultiViewer::getObject (  int    objID,
int    viewID
)  [inline]
 

Get the CanvasObject with the given index.

CanvasObject MultiViewer::getObjectCopy (  int    objID,
int    viewID,
boolean    ics
)  [inline]
 

Get a copy of the CanvasObject with the given index.

void MultiViewer::removeObject (  int    objID,
int    viewID
)  [inline]
 

Remove given object from the viewer.

void MultiViewer::mousePressed (  MouseEvent    e )  [inline]
 

Implementation of MouseListener interface.

void MultiViewer::mouseReleased (  MouseEvent    e )  [inline]
 

Implementation of MouseListener interface.

void MultiViewer::mouseClicked (  MouseEvent    e )  [inline]
 

void MultiViewer::mouseEntered (  MouseEvent    e )  [inline]
 

void MultiViewer::mouseExited (  MouseEvent    e )  [inline]
 

void MultiViewer::viewerSelected (  ViewerEvent    e )  [inline]
 

Implementation of ViewerListener interface.

void MultiViewer::objectSelected (  ViewerEvent    e )  [inline]
 

Implementation of ViewerListener interface.

void MultiViewer::viewerEntered (  ViewerEvent    e )  [inline]
 

Implementation of ViewerListener interface.

void MultiViewer::viewerExited (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectEntered (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectProbed (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectCreated (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectDeleted (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectMoved (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectResized (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectReshaped (  ViewerEvent    e )  [inline]
 

void MultiViewer::objectChangedVisually (  ViewerEvent    e )  [inline]
 

void MultiViewer::buttonPressed (  ButtonBarEvent    e )  [inline]
 

Implementation of ButtonBarListener.

Reimplemented from ButtonBarListener.

void MultiViewer::viewerModeChanged (  ViewerModeEvent    e )  [inline]
 

Implementation of ViewerModeListener.

Reimplemented from ViewerModeListener.

void MultiViewer::copyObjectAcrossViewer (  int    objID,
int    source,
int    dest
)  [inline]
 

void MultiViewer::handleViewerDialogClear (  int    viewID )  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogDone (    )  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogPointed (  int    viewID,
double    x,
double    y
)  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogSelected (  int    viewID )  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogZoomed (  int    viewID,
double    zoomVal
)  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogBackColor (  int    viewID,
Color    c
)  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleViewerDialogDrawColor (  int    viewID,
Color    c
)  [inline]
 

Implementation of ViewerDialogUser.

Reimplemented from ViewerDialogUser.

void MultiViewer::handleZoomed (  double    zoomVal )  [inline]
 

Implementation of ZoomerUser.

Reimplemented from ZoomerUser.


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