getContext().getCanvas().redraw();
}
@Override
protected void mouseReleased(MouseEvent event, Point2D cursor) {
PixelSelection selection = getContext().getCanvas().getSelection();
selection.clear();
selection.add(new Rectangle(
(int)startPoint.getX(),
(int)startPoint.getY(),
(int)(currentPoint.getX()-startPoint.getX()),
(int)(currentPoint.getY()-startPoint.getY())
));