Public Methods | |
| void | paintComponent (Graphics g) |
| void | handleDrawStart (MouseEvent e) |
| void | handleDrawStop (MouseEvent e) |
| void | handleDrawMove (MouseEvent e) |
| void | handlePointMoveStart (MouseEvent e, int point) |
| void | handlePointMoveStop (MouseEvent e) |
| void | handlePointMove (MouseEvent e) |
| void | handleFullMoveStart (MouseEvent e) |
| void | handleFullMoveStop (MouseEvent e) |
| void | handleFullMove (MouseEvent e) |
| void | handleAbort () |
| int | getPoint () |
| ScribbleFigure | getCurFigure () |
| ScribbleFigure | getDrawnFigure () |
| boolean | getContinuous () |
| void | setContinuous (boolean continuous) |
|
|
00059 {
00060 curFigure.draw(g);
00061 }
|
|
|
|
|
|
00078 {
00079 if (curFigure == null) {
00080 return;
00081 }
00082 curFigure.draw(g);
00083 if (!curFigure.isComplex()) {
00084 curFigure.setDimension(e.getX() - curFigure.getStartXCcs(),
00085 e.getY() - curFigure.getStartYCcs());
00086 }
00087 drawnFigure = curFigure;
00088 curFigure = null;
00089 }
|
|
|
00093 {
00094 if (curFigure == null) {
00095 return;
00096 }
00097 curFigure.draw(g);
00098 if (curFigure.isComplex()) {
00099 if (!continuous) {
00100 curFigure.removeLastPoint();
00101 }
00102 curFigure.addPoint(e.getX(), e.getY());
00103 } else {
00104 curFigure.setDimension(e.getX() - curFigure.getStartXCcs(),
00105 e.getY() - curFigure.getStartYCcs());
00106 }
00107 curFigure.draw(g);
00108 }
|
|
||||||||||||
|
00112 {
00113 if (curFigure == null) {
00114 return;
00115 }
00116 this.point = point;
00117 this.point = curFigure.changePoint(point, e.getX(), e.getY());
00118 curFigure.draw(g);
00119 }
|
|
|
00123 {
00124 if (curFigure == null) {
00125 return;
00126 }
00127 curFigure.draw(g);
00128 this.point = curFigure.changePoint(point, e.getX(), e.getY());
00129 drawnFigure = curFigure;
00130 curFigure = null;
00131 }
|
|
|
00135 {
00136 if (curFigure == null) {
00137 return;
00138 }
00139 curFigure.draw(g);
00140 this.point = curFigure.changePoint(point, e.getX(), e.getY());
00141 curFigure.draw(g);
00142 }
|
|
|
00146 {
00147 if (curFigure == null) {
00148 return;
00149 }
00150 fullX = e.getX();
00151 fullY = e.getY();
00152 curFigure.draw(g);
00153 }
|
|
|
|
|
|
|
|
|
00184 {
00185 if (curFigure == null) {
00186 return;
00187 }
00188 curFigure.draw(g);
00189 curFigure = null;
00190 this.point = -1;
00191 this.fullX = -1;
00192 this.fullY = -1;
00193 }
|
|
|
00197 {
00198 return point;
00199 }
|
|
|
00203 {
00204 return curFigure;
00205 }
|
|
|
00209 {
00210 return drawnFigure;
00211 }
|
|
|
00215 {
00216 return continuous;
00217 }
|
|
|
00221 {
00222 this.continuous = continuous;
00223 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001