if (this.creatingPoly) {
polys.get(polys.size() - 1).addPoint(startX, startY);
} else {
int[] x = { this.startX };
int[] y = { this.startY };
polys.add(new Poly(x, y, 1));
this.creatingPoly = true;
}
} else if (e.getButton() != MouseEvent.BUTTON3
&& this.mode == JMImagePanel.CREATE
&& this.createMode == JMImagePanel.CREATE_RECT) {