Revision 39063 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/ArcCADTool.java
ArcCADTool.java | ||
---|---|---|
121 | 121 |
Point current = createPoint(x, y); |
122 | 122 |
|
123 | 123 |
Geometry ig = createArc(p1, p2, current); |
124 |
renderer.draw(ig, |
|
125 |
mapControlManager.getGeometrySelectionSymbol()); |
|
124 |
|
|
125 |
if (ig != null) { |
|
126 |
/* |
|
127 |
* sometims it's not possible to create arc |
|
128 |
* (example: aligned points) |
|
129 |
*/ |
|
130 |
renderer.draw(ig, |
|
131 |
mapControlManager.getGeometrySelectionSymbol()); |
|
126 | 132 |
|
127 |
Point2D p = |
|
128 |
getCadToolAdapter().getMapControl().getViewPort() |
|
129 |
.fromMapPoint(p1.getX(), p1.getY()); |
|
130 |
renderer.drawRect((int) p.getX(), (int) p.getY(), 1, 1); |
|
131 |
p = |
|
132 |
getCadToolAdapter().getMapControl().getViewPort() |
|
133 |
.fromMapPoint(p2.getX(), p2.getY()); |
|
134 |
renderer.drawRect((int) p.getX(), (int) p.getY(), 1, 1); |
|
133 |
Point2D p = |
|
134 |
getCadToolAdapter().getMapControl().getViewPort() |
|
135 |
.fromMapPoint(p1.getX(), p1.getY()); |
|
136 |
renderer.drawRect((int) p.getX(), (int) p.getY(), 1, 1); |
|
137 |
p = |
|
138 |
getCadToolAdapter().getMapControl().getViewPort() |
|
139 |
.fromMapPoint(p2.getX(), p2.getY()); |
|
140 |
renderer.drawRect((int) p.getX(), (int) p.getY(), 1, 1); |
|
141 |
} |
|
135 | 142 |
} |
136 | 143 |
} |
137 | 144 |
|
Also available in: Unified diff