Examples of toggleSelected()


Examples of com.cburch.draw.canvas.Selection.toggleSelected()

      }
      break;
    case RECT_TOGGLE:
      if (dragEffective) {
        Bounds bds = Bounds.create(start).add(x1, y1);
        selection.toggleSelected(canvas.getModel().getObjectsIn(bds));
      } else {
        CanvasObject clicked;
        clicked = getObjectAt(model, start.getX(), start.getY(), true);
        selection.setSelected(clicked, !selected.contains(clicked));
      }
View Full Code Here

Examples of com.cburch.draw.canvas.Selection.toggleSelected()

            }
            break;
        case RECT_TOGGLE:
            if (dragEffective) {
                Bounds bds = Bounds.create(start).add(x1, y1);
                selection.toggleSelected(canvas.getModel().getObjectsIn(bds));
            } else {
                CanvasObject clicked;
                clicked = getObjectAt(model, start.getX(), start.getY(), true);
                selection.setSelected(clicked, !selected.contains(clicked));
            }
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.toggleSelected()

    final IMapSelection selection = controller.getSelection();
    if (range && !extend) {
      selection.selectContinuous(newlySelectedNode);
    }
    else if (extend && !range) {
      selection.toggleSelected(newlySelectedNode);
    }
    if (extend == range) {
      if (selection.isSelected(newlySelectedNode) && selection.size() == 1
              && FocusManager.getCurrentManager().getFocusOwner() instanceof MainView)
        return;
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.toggleSelected()

        next = true;
    }
    NodeModel selected = mapSelection.getSelected();
    if (!selected.isVisible()) {
      if(mapSelection.getSelection().size() > 1){
        mapSelection.toggleSelected(selected);
      }
      else
        mapSelection.selectAsTheOnlyOneSelected(selected.getVisibleAncestorOrSelf());
    }
    mapSelection.setSiblingMaxLevel(mapSelection.getSelected().getNodeLevel(false));
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.toggleSelected()

      if(next == null){
        break;
      }
      mapController.displayNode(next);
      if(nodeFound){
        selection.toggleSelected(next);
      }
      else{
        selection.selectAsTheOnlyOneSelected(next);
        nodeFound = true;
      }
View Full Code Here

Examples of org.freeplane.features.map.IMapSelection.toggleSelected()

    final NodeModel[] array = new NodeModel[selectedNodes.size()];
    boolean next = false;
    for(NodeModel node : selectedNodes.toArray(array)){
      if(next){
        if (!node.isVisible()) {
          mapSelection.toggleSelected(node);
        }
      }
      else
        next = true;
    }
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.DataSet.toggleSelected()

                    popupSetLabelColors(l, osm);
                }
                @Override public void mouseClicked(MouseEvent e) {
                    DataSet ds = Main.main.getCurrentDataSet();
                    // Let the user toggle the selection
                    ds.toggleSelected(osm);
                    l.validate();
                }
            });
            // Sometimes the mouseEntered event is not catched, thus the label
            // will not be highlighted, making it confusing. The MotionListener
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.DataSet.toggleSelected()

            // but Ctrl on an *area* just clears those items
            // out of the selection.
            if (area) {
                ds.clearSelection(prims);
            } else {
                ds.toggleSelected(prims);
            }
        } else if (shift) {
            // add prims to an existing selection
            ds.addSelected(prims);
        } else {
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.