}
@Override
protected void mousePressed(MouseEvent event, Point2D.Double cursor) {
cursor = snapPoint(cursor);
node = new SArrow(cursor,cursor);
node.setStrokeWidth(3);
node.setFillPaint(FlatColor.BLACK);
context.getDocument().getCurrentPage().add(node);
context.getUndoManager().pushAction(new UndoableAddNodeAction(context,node,"arrow"));
context.redraw();