Examples of Selection


Examples of com.cburch.draw.canvas.Selection

        anchorLocation, clip.getAnchorFacing()));
  }
 
  @Override
  public void delete() {
    Selection sel = canvas.getSelection();
    int n = sel.getSelected().size();
    List<CanvasObject> select = new ArrayList<CanvasObject>(n);
    List<CanvasObject> remove = new ArrayList<CanvasObject>(n);
    Location anchorLocation = null;
    Direction anchorFacing = null;
    for (CanvasObject o : sel.getSelected()) {
      if (o.canRemove()) {
        remove.add(o);
      } else {
        select.add(o);
        if (o instanceof AppearanceAnchor) {
View Full Code Here

Examples of com.cburch.draw.canvas.Selection

    }
  }
 
  @Override
  public void duplicate() {
    Selection sel = canvas.getSelection();
    int n = sel.getSelected().size();
    List<CanvasObject> select = new ArrayList<CanvasObject>(n);
    List<CanvasObject> clones = new ArrayList<CanvasObject>(n);
    for (CanvasObject o : sel.getSelected()) {
      if (o.canRemove()) {
        CanvasObject copy = o.clone();
        copy.translate(10, 10);
        clones.add(copy);
        select.add(copy);
View Full Code Here

Examples of com.cburch.logisim.gui.main.Selection

    int y = e.getY();
    Location pt = Location.create(x, y);

    JPopupMenu menu;
    Project proj = canvas.getProject();
    Selection sel = proj.getSelection();
    Collection<Component> in_sel = sel.getComponentsContaining(pt, g);
    if (!in_sel.isEmpty()) {
      Component comp = in_sel.iterator().next();
      if (sel.getComponents().size() > 1) {
        menu = new MenuSelection(proj);
      } else {
        menu = new MenuComponent(proj,
          canvas.getCircuit(), comp);
        MenuExtender extender = (MenuExtender) comp.getFeature(MenuExtender.class);
View Full Code Here

Examples of com.cburch.logisim.gui.main.Selection

      add(copy); copy.addActionListener(this);
    }

    public void actionPerformed(ActionEvent e) {
      Object src = e.getSource();
      Selection sel = proj.getSelection();
      if (src == del) {
        proj.doAction(SelectionActions.clear(sel));
      } else if (src == cut) {
        proj.doAction(SelectionActions.cut(sel));
      } else if (src == copy) {
View Full Code Here

Examples of com.cburch.logisim.gui.main.Selection

    Location oldWireLoc = wireLoc;
    wireLoc = NULL_LOCATION;
    lastX = Integer.MIN_VALUE;
    if (wire) {
      current = wiring;
      Selection sel = canvas.getSelection();
      Circuit circ = canvas.getCircuit();
      Collection<Component> selected = sel.getAnchoredComponents();
      ArrayList<Component> suppress = null;
      for (Wire w : circ.getWires()) {
        if (selected.contains(w)) {
          if (w.contains(oldWireLoc)) {
            if (suppress == null) suppress = new ArrayList<Component>();
            suppress.add(w);
          }
        }
      }
      sel.setSuppressHandles(suppress);
    } else {
      current = select;
    }
    pressX = e.getX();
    pressY = e.getY();
View Full Code Here

Examples of com.cburch.logisim.gui.main.Selection

  }
 
  private void attemptReface(Canvas canvas, final Direction facing, KeyEvent e) {
    if (e.getModifiersEx() == 0) {
      final Circuit circuit = canvas.getCircuit();
      final Selection sel = canvas.getSelection();
      SetAttributeAction act = new SetAttributeAction(circuit,
          Strings.getter("selectionRefaceAction"));
      for (Component comp : sel.getComponents()) {
        if (!(comp instanceof Wire)) {
          Attribute<Direction> attr = getFacingAttribute(comp);
          if (attr != null) {
            act.set(comp, attr, facing);
          }
View Full Code Here

Examples of com.citytechinc.cq.component.annotations.widgets.Selection

  private static final String OPTION_FIELD_NAME_PREFIX = "option";

  public DialogElement make() throws ClassNotFoundException, InvalidComponentFieldException, NotFoundException {

    Selection selectionAnnotation = getAnnotation(Selection.class);
    SelectionWidgetParameters parameters = new SelectionWidgetParameters();
    parameters.setName(getNameForField());
    parameters.setFieldName(getFieldNameForField());
    parameters.setFieldLabel(getFieldLabelForField());
    parameters.setFieldDescription(getFieldDescriptionForField());
View Full Code Here

Examples of com.datastax.driver.core.querybuilder.Select.Selection

        return name;
    }

    public static Selection select(List<CassandraColumnHandle> columns)
    {
        Selection selection = QueryBuilder.select();
        for (CassandraColumnHandle column : columns) {
            selection.column(validColumnName(column.getName()));
        }
        return selection;
    }
View Full Code Here

Examples of com.esri.ontology.service.control.Selection

    // gets writer
    PrintWriter out = response.getWriter();

    // parses query
    QueryCriteria queryCriteria = extractQueryCriteria(request);
    Selection selection = extractSelection(request);
    Format format = extractFormat(request);

    // sets response attributes
    response.setCharacterEncoding("UTF-8");
    response.setContentType(format.isOwl() ? "text/html" : "text/plain");
View Full Code Here

Examples of com.forgeessentials.util.AreaSelector.Selection

                if (info.getSelection() == null)
                {
                    OutputHandler.chatError(player, "Invalid selection detected. Please check your selection.");
                    return;
                }
                Selection sel = info.getSelection();
                BackupArea back = new BackupArea();

                PermQueryPlayerArea query = new PermQueryPlayerArea(player, getCommandPerm(), sel, false);
                PermResult result = APIRegistry.perms.checkPermResult(query);
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.