Search in sources :

Example 1 with ModelDeleteHandleAction

use of com.cburch.draw.actions.ModelDeleteHandleAction in project logisim-evolution by reds-heig.

the class AppearanceEditHandler method removeControlPoint.

@Override
public void removeControlPoint() {
    Selection sel = canvas.getSelection();
    Handle handle = sel.getSelectedHandle();
    canvas.doAction(new ModelDeleteHandleAction(canvas.getModel(), handle));
}
Also used : ModelDeleteHandleAction(com.cburch.draw.actions.ModelDeleteHandleAction) Selection(com.cburch.draw.canvas.Selection) Handle(com.cburch.draw.model.Handle)

Aggregations

ModelDeleteHandleAction (com.cburch.draw.actions.ModelDeleteHandleAction)1 Selection (com.cburch.draw.canvas.Selection)1 Handle (com.cburch.draw.model.Handle)1