Esempio n. 1
0
  public void mouseDown(MouseEvent e, int x, int y) {
    super.mouseDown(e, x, y);
    fLastX = x;
    fLastY = y;

    if (e.isShiftDown()) {
      view().toggleSelection(fAnchorFigure);
      fAnchorFigure = null;
    } else if (!view().isFigureSelected(fAnchorFigure)) {
      view().clearSelection();
      view().addToSelection(fAnchorFigure);
    }
  }
Esempio n. 2
0
 public void mouseDown(MouseEvent e, int x, int y) {
   super.mouseDown(e, x, y);
   fAnchorHandle.invokeStart(x, y, view());
 }