if (icon!=null) { // TODO: Clean up:
if (dragPosition!=null) {
g2D.drawImage(icon, (int) dragPosition.x-icon.getWidth()/2, (int) dragPosition.y-icon.getHeight()/2, null);
g2D.drawOval((int) dragPosition.x-3, (int) dragPosition.y-3, 5, 5); // D
}
Position topLeft = deepest!=null ? deepest.getTopLeft() : null;
if (topLeft!=null) {
//- deepest.drawBorder(g2D, topLeft, getColourScheme());
deepest.drawInnerBorder(g2D, topLeft, getColourScheme(), true);
}
repaint();
} else if (mark!=null) {
Position topLeft = mark!=null ? mark.getTopLeft() : null;
if (topLeft!=null) {
mark.drawInnerBorder(g2D, topLeft, getColourScheme(), highlightMark());
}
repaint();