}
} else if (e.getButton() == MouseEvent.BUTTON1
&& this.mode == JMImagePanel.CREATE) {
if (this.createMode == JMImagePanel.CREATE_CIRCLE) {
circles.add(new Circle(new Point2D.Double(this.startX,
this.startY), 0));
} else if (this.createMode == JMImagePanel.CREATE_POLY) {
if (this.creatingPoly) {
polys.get(polys.size() - 1).addPoint(startX, startY);
} else {