Exemplo 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);
    }
  }
Exemplo n.º 2
0
 public void mouseDown(MouseEvent e, int x, int y) {
   super.mouseDown(e, x, y);
   fAnchorHandle.invokeStart(x, y, view());
 }