@Override public void deactivate(DrawingEditor editor) { super.deactivate(editor); getView().setCursor(Cursor.getDefaultCursor()); getView().setActiveHandle(null); clearHoverHandles(); dragLocation = null; }
/** * Returns a cursor for the handle. * * @return Returns a move cursor, if the figure is transformable. Returns a default cursor * otherwise. */ @Override public Cursor getCursor() { return Cursor.getPredefinedCursor( getOwner().isTransformable() ? Cursor.MOVE_CURSOR : Cursor.DEFAULT_CURSOR); }