Examples of containsSelection()


Examples of diva.canvas.interactor.SelectionModel.containsSelection()

                }
            } catch (GraphException ex) {
                SelectionModel selectionModel = _controller.getSelectionModel();

                // If it is illegal then blow away the edge.
                if (selectionModel.containsSelection(c)) {
                    selectionModel.removeSelection(c);
                }

                removeEdge(edge);
                throw ex;
View Full Code Here

Examples of diva.canvas.interactor.SelectionModel.containsSelection()

        if (!flag) {
            Interactor interactor = getInteractor();
            if (interactor instanceof SelectionInteractor) {
                // remove any selection handles, etc.
                SelectionModel model = ((SelectionInteractor) interactor).getSelectionModel();
                if (model.containsSelection(this)) {
                    model.removeSelection(this);
                }
            }
        }
View Full Code Here

Examples of diva.canvas.interactor.SelectionModel.containsSelection()

    public void remove(CanvasFigure fig) {
        Interactor interactor = fig.getInteractor();
        if (interactor instanceof SelectionInteractor) {
            // remove any selection handles, etc.
            SelectionModel model = ((SelectionInteractor) interactor).getSelectionModel();
            if (model.containsSelection(fig)) {
                model.removeSelection(fig);
            }
        }
        _figureLayer.remove(fig);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.