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 |