Examples of clearSelected()


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

      if (shift && selection.isSelected(clicked)) {
        selection.setSelected(clicked, false);
        curAction = IDLE;
      } else {
        if (!shift && !selection.isSelected(clicked)) {
          selection.clearSelected();
        }
        selection.setSelected(clicked, true);
        selection.setMovingShapes(selection.getSelected(), 0, 0);
        curAction = MOVE_ALL;
      }
View Full Code Here

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

    }

    if (shift) {
      curAction = RECT_TOGGLE;
    } else {
      selection.clearSelected();
      curAction = RECT_SELECT;
    }
    repaintArea(canvas);
  }
 
View Full Code Here

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

    if (before != null) {
      curAction = IDLE;
      Selection sel = canvas.getSelection();
      sel.clearDrawsSuppressed();
      sel.setMovingShapes(Collections.<CanvasObject>emptySet(), 0, 0);
      sel.clearSelected();
      sel.setSelected(before, true);
      sel.setHandleSelected(handle);
      repaintArea(canvas);
    }
  }
View Full Code Here

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

        selection.setSelected(canvas.getModel().getObjectsIn(bds), true);
      } else {
        CanvasObject clicked;
        clicked = getObjectAt(model, start.getX(), start.getY(), true);
        if (clicked != null) {
          selection.clearSelected();
          selection.setSelected(clicked, true);
        }
      }
      break;
    case RECT_TOGGLE:
View Full Code Here

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

      }
      if (!toRemove.isEmpty()) {
        e.consume();
        CanvasModel model = canvas.getModel();
        canvas.doAction(new ModelRemoveAction(model, toRemove));
        selected.clearSelected();
        repaintArea(canvas);
      }
    } else if (ch == '\u001b' && !selected.isEmpty()) {
      selected.clearSelected();
      repaintArea(canvas);
View Full Code Here

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

        canvas.doAction(new ModelRemoveAction(model, toRemove));
        selected.clearSelected();
        repaintArea(canvas);
      }
    } else if (ch == '\u001b' && !selected.isEmpty()) {
      selected.clearSelected();
      repaintArea(canvas);
    }
  }
 
 
View Full Code Here

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

  }
 
  @Override
  public void doIt(Project proj) {
    Selection sel = canvas.getSelection();
    sel.clearSelected();
    if (toRemove != null) canvasModel.removeObjects(toRemove.keySet());
    int dest = AppearanceCanvas.getMaxIndex(canvasModel) + 1;
    if (toAdd != null) canvasModel.addObjects(dest, toAdd);

    AppearanceAnchor anchor = findAnchor(canvasModel);
View Full Code Here

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

    }
    if (anchor != null && anchorOldFacing != null) {
      anchor.setValue(AppearanceAnchor.FACING, anchorOldFacing);
    }
    Selection sel = canvas.getSelection();
    sel.clearSelected();
    if (toAdd != null) canvasModel.removeObjects(toAdd);
    if (toRemove != null) canvasModel.addObjects(toRemove);
    sel.setSelected(oldSelection, true);
    canvas.repaint();
  }
View Full Code Here

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

            if (shift && selection.isSelected(clicked)) {
                selection.setSelected(clicked, false);
                curAction = IDLE;
            } else {
                if (!shift && !selection.isSelected(clicked)) {
                    selection.clearSelected();
                }
                selection.setSelected(clicked, true);
                selection.setMovingShapes(selection.getSelected(), 0, 0);
                curAction = MOVE_ALL;
            }
View Full Code Here

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

        }

        if (shift) {
            curAction = RECT_TOGGLE;
        } else {
            selection.clearSelected();
            curAction = RECT_SELECT;
        }
        repaintArea(canvas);
    }
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.