Inheritance diagram for CanvasArrow::

Public Methods | |
| CanvasArrow (double x, double y, double length, int angle) | |
| CanvasArrow (double x, double y, double length, int angle, Color color) | |
| CanvasArrow (double x, double y, double length, int angle, Color color, boolean fixed) | |
| CanvasArrow (double x, double y, double length, int angle, int mode, Color color, boolean stroke, float linew, float trans, boolean fixed, double ccs_scale) | |
| void | draw (Graphics g) |
| Draw CanvasObject on 'g', using internal CCS values. More... | |
| Object | clone () |
| Return an identical copy of this CanvasObject. More... | |
| boolean | isInside (double x, double y) |
| boolean | isNear (double x, double y) |
| void | setPosition (double x, double y) |
| Place top left position of CanvasObject's bounding box at position (x, y). More... | |
| void | setDimension (double w, double h) |
| Resize CanvasObject to width 'w' and height 'h'. More... | |
| void | setZoomFactor (double zoomFactor) |
| Scale CanvasObject according to 'zoomFactor'. More... | |
| double | getLength () |
| void | setLength (double length) |
| int | getAngle () |
| void | setAngle (int angle) |
| boolean | getFixed () |
| void | setFixed (boolean b) |
| boolean | getHeaded () |
| void | setHeaded (boolean b) |
| Vector | getVisualChangeMethods () |
| Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object. More... | |
| CanvasArrow (int x, int y, int length, int angle, int mode, Color color, boolean fixed, double ccs_scale) | |
| boolean | isInsideCcs (int x, int y) |
| To be removed. More... | |
| boolean | isNearCcs (int x, int y) |
| To be removed. More... | |
| void | setPosition (int x, int y) |
| void | setDimension (int w, int h) |
| void | doMove (int w, int h) |
| int | changePoint (int index, int x, int y) |
| Point | getOrigin () |
| Point | getHead () |
Protected Methods | |
| void | initArrow (double x, double y, double length, int angle, boolean fixed) |
| void | setICS () |
| void | transformICStoCCS () |
| Perform a full ICS to CCS coordinate transformation. More... | |
| void | calcHead () |
| void | calcAngle (double w, double h) |
Protected Attributes | |
| double | ics_length |
| int | ccs_length |
| int | headX |
| int | headY |
| int | angle |
| int | beta |
| int | gamma |
| int | bx |
| int | by |
| int | gx |
| int | gy |
| double | cosa |
| double | sina |
| double | cosb |
| double | sinb |
| double | cosg |
| double | sing |
| boolean | fixed = false |
| boolean | headed = true |
| boolean | scaled = false |
Static Protected Attributes | |
| final int | HEAD_LENGTH = 6 |
| final int | HEAD_ANGLE = 20 |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||
|
|
|
|
Draw CanvasObject on 'g', using internal CCS values.
Reimplemented from CanvasObject. |
|
|
Return an identical copy of this CanvasObject.
Reimplemented from CanvasObject. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Place top left position of CanvasObject's bounding box at position (x, y). Parameters are assumed Image Coordinate System values. Reimplemented from ScribbleObject. |
|
||||||||||||
|
Resize CanvasObject to width 'w' and height 'h'. Parameters are assumed Image Coordinate System values. Reimplemented from ScribbleObject. |
|
|
Scale CanvasObject according to 'zoomFactor'. The internal ICS values are taken as base values to calculate the associated CCS values. Reimplemented from CanvasObject. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Builds up a list of functions that are to fill a menu for changing the visualization aspects of an object. Classes derived from this one typically add their class-specific methods to their parents' methods by first calling the parent to fill the vector and then add their own. The result is a Vector of CallableMethods. Reimplemented from ScribbleFigure. |
|
||||||||||||
|
To be removed.
Reimplemented from CanvasObject. |
|
||||||||||||
|
To be removed.
Reimplemented from CanvasObject. |
|
||||||||||||
|
Reimplemented from ScribbleObject. |
|
||||||||||||
|
Reimplemented from ScribbleObject. |
|
||||||||||||
|
Reimplemented from ScribbleObject. |
|
||||||||||||||||
|
Reimplemented from ScribbleFigure. |
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
Perform a full ICS to CCS coordinate transformation.
Reimplemented from CanvasObject. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001