@Override
protected void mouseDragged(MouseEvent event, Point2D cursor) {
PixelLayer layer = getContext().getDocument().getCurrentLayer();
PixelGraphics g = layer.getGraphics();
g.setFill(getContext().getDocument().getForegroundColor());
g.fillPixel((int)cursor.getX(),(int)cursor.getY());
getContext().getCanvas().redraw();
}
@Override
protected void mouseReleased(MouseEvent event, Point2D cursor) {