Examples of SelectionModel


Examples of diva.canvas.interactor.SelectionModel

     */
    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

Examples of org.eclipse.nebula.widgets.nattable.selection.SelectionModel

    @Before
    public void before() {
        SelectionLayer selectionLayer = new SelectionLayer(
                new DataLayerFixture(100, 100, 100, 40));
        model = new SelectionModel(selectionLayer);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.extensions.SelectionModel

        final ResourceSetAvatar avatar = delegate.createAvatar(resources);

        avatar.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                SelectionModel selectionModel = viewAccessor.findView(avatar)
                        .getSelectionModel();
                setSelection(selectionModel, avatar.getResourceSet());
            }
        });
View Full Code Here

Examples of systole.view.tabs.controllers.SelectionModel

    }

    public void update(Observable o, Object arg) {
        if (arg == null) {
            this.removeAllPanels();
            SelectionModel model = (SelectionModel) o;
            if (!model.isSelectionEmpty()) {
                Iterator<SelectionItem> itemsIt = model.getCurrentSegments().iterator();
                while (itemsIt.hasNext()) {
                    SelectionItem selectItem = itemsIt.next();
                    if (selectItem.isSelected()) {
                        this.addSegment(selectItem.getIndexSegement());
                    }
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.