// updated coordinates
private Element createElement(java.awt.Point start, java.awt.Point last) {
// don't create an element if the arrow tool is the current tool
if (!editorDialog.editingElements()) {
if (editorDialog.getElementType() == Line.class) {
return new Line
(start, last, editorDialog.getElementColor());
} else if (editorDialog.getElementType() == Rectangle.class) {
return new Rectangle
(start, last, editorDialog.getElementColor());
} else if (editorDialog.getElementType() == Circle.class) {