Revision 27221 branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/gui/cad/tools/ArcCADTool.java
ArcCADTool.java | ||
---|---|---|
153 | 153 |
drawLine((Graphics2D) g, new Point2D.Double(p1.getX(), p1.getY()), new Point2D.Double(x, y),geometrySelectSymbol); |
154 | 154 |
} else if (status.equals("Arc.ThirdPoint")) { |
155 | 155 |
Point current = createPoint(x, y); |
156 |
|
|
156 |
try{ |
|
157 | 157 |
Geometry ig = createArc(p1, p2, current); |
158 | 158 |
|
159 | 159 |
if (ig != null) { |
... | ... | |
169 | 169 |
e.printStackTrace(); |
170 | 170 |
} |
171 | 171 |
} |
172 |
|
|
172 |
}catch (IllegalArgumentException e) { |
|
173 |
// TODO: handle exception |
|
174 |
} |
|
173 | 175 |
Point2D p = getCadToolAdapter().getMapControl().getViewPort() |
174 | 176 |
.fromMapPoint(p1.getX(), p1.getY()); |
175 | 177 |
g.drawRect((int) p.getX(), (int) p.getY(), 1, 1); |
Also available in: Unified diff