Inheritance diagram for ScribbleCanvas::

Public Methods | |
| ScribbleCanvas (int checkMode) | |
| ScribbleCanvas (Dimension d, boolean fixedSize, int checkMode) | |
| void | setCanvasEditUser (CanvasEditUser user) |
| void | paintComponent (Graphics g) |
| void | clear () |
| Clear the canvas, i.e. More... | |
| void | zoom (double zoomVal) |
| Zoom to the given value. More... | |
| int | getMode () |
| Overrides ActiveCanvas interface. More... | |
| int | getSubMode () |
| Overrides ActiveCanvas interface. More... | |
| void | setMode (int mode, int subMode) |
| Overrides ActiveCanvas interface. More... | |
| void | actionPerformed (ActionEvent event) |
| void | handleJavaFuncDialogOK (Object target, CallableMethod method, Object[] argVals) |
| void | handleMousePress (MouseEvent e) |
| Interface for MouseListener events, called by LayeredCanvasPane. More... | |
| void | handleMouseEnter (MouseEvent e) |
| void | handleMouseExit (MouseEvent e) |
| void | handleMouseMove (MouseEvent e) |
| Interface for MouseMotionListener events, called by LayeredCanvasPane. More... | |
| void | handleMouseDrag (MouseEvent e) |
Protected Methods | |
| void | drawImages (Graphics g) |
| void | drawObjects (Graphics g) |
| void | zoomObjects (double zoomValue) |
| ScribbleFigure | createDrawFigure (int x, int y) |
| void | handleFigureDraw (MouseEvent e) |
| void | handleFigureDelete (MouseEvent e) |
| void | handleFigureDelPoint (MouseEvent e) |
| void | handleFigureMoveCopy (MouseEvent e) |
| void | handleFigureModify (MouseEvent e) |
| boolean | isDrawing () |
| boolean | inDrawMode (int mode) |
| boolean | inFigureMode (int mode) |
| boolean | inComplexSelectionMode (int mode) |
| void | selectObject () |
| void | unselectObject () |
| void | popUpObjectMenu () |
Protected Attributes | |
| DrawField | df = null |
| Selector | selector = null |
| ScribbleFigure | oldFigure = null |
| boolean | mouseInside = false |
| boolean | popUpHandling = false |
| int | curMode = SELECTION |
| int | selPoint = -1 |
| int | selLayer = -1 |
| int | selIndex = -1 |
| int | oldIndex = -1 |
| int | oldObjID = -1 |
| int | selX = -1 |
| int | selY = -1 |
| CallableMethod[] | methods = null |
Static Protected Attributes | |
| final int | IMAGE_LAYER = 0 |
| final int | FIGURE_LAYER = 1 |
| final int | NR_OF_LAYERS = 2 |
| final String | CANVAS_IMAGE_CLASS = "HxJava.CanvasObject.CanvasImage" |
| final String | CANVAS_FIGURE_CLASS = "HxJava.CanvasObject.ScribbleFigure" |
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Clear the canvas, i.e. remove all objects from the canvas and draw the background color on the entire canvas. Reimplemented from LayeredCanvas. |
|
|
Zoom to the given value. Will adjust the canvas size by setting the CCS extent. Reimplemented from IcsCanvas. |
|
|
Overrides ActiveCanvas interface.
Reimplemented from ActiveCanvas. |
|
|
Overrides ActiveCanvas interface.
Reimplemented from ActiveCanvas. |
|
||||||||||||
|
Overrides ActiveCanvas interface.
Reimplemented from ActiveCanvas. |
|
|
|
|
||||||||||||||||
|
|
|
|
Interface for MouseListener events, called by LayeredCanvasPane.
Reimplemented from ActiveCanvas. |
|
|
Reimplemented from ActiveCanvas. |
|
|
Reimplemented from ActiveCanvas. |
|
|
Interface for MouseMotionListener events, called by LayeredCanvasPane.
Reimplemented from ActiveCanvas. |
|
|
Reimplemented from IcsCanvas. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001