Inheritance diagram for MultiViewer::
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... |
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.
|
Construct a viewer with x times y viewports.
|
|
Get the viewer mode (see class ViewerMode).
|
|
Get the viewer sub-mode (see class ViewerMode).
|
|
Set the viewer mode (see class ViewerMode) for all viewers.
|
|
Check whether the given viewer mode (see class ViewerMode) is enabled.
|
|
Set whether the given viewer mode (see class ViewerMode) is enabled.
|
|
Get the default drawing color of the active viewer.
|
|
Get the default drawing color of the given viewer.
|
|
Set the default drawing color of all viewers.
|
|
Set the default drawing color of the given viewer.
|
|
Get the background color of the active viewer.
|
|
Get the background color of the given viewer.
|
|
Set the background color of all viewers.
|
|
Set the background color of the given viewer.
|
|
Returns the number of viewers in the MultiViewer.
|
|
Indicate whether the given ID belongs to one of the viewers.
|
|
Get the ID of the active viewer.
|
|
Set the active viewer.
|
|
Add a viewer listener.
|
|
Remove a viewer listener.
|
|
Clear all viewers.
|
|
Clear the given viewer.
|
|
Render the canvas of the viewer in an image.
|
|
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. |
|
Get the CanvasObject with the given index.
|
|
Get a copy of the CanvasObject with the given index.
|
|
Remove given object from the viewer.
|
|
Implementation of MouseListener interface.
|
|
Implementation of MouseListener interface.
|
|
|
|
|
|
|
|
Implementation of ViewerListener interface.
|
|
Implementation of ViewerListener interface.
|
|
Implementation of ViewerListener interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implementation of ButtonBarListener.
Reimplemented from ButtonBarListener. |
|
Implementation of ViewerModeListener.
Reimplemented from ViewerModeListener. |
|
|
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ViewerDialogUser.
Reimplemented from ViewerDialogUser. |
|
Implementation of ZoomerUser.
Reimplemented from ZoomerUser. |