Figure figure = getFigureWithoutDecoration(drawing().findFigure(e.getX(), e.getY())); if ((figure != null) && (figure instanceof CompositeFigure)) { setContainerFigure((CompositeFigure)figure); super.mouseDown(e, x, y);
Figure figure = drawing().findFigure(e.getX(), e.getY()); if (figure != null) { figure = figure.getDecoratedFigure(); if (figure instanceof CompositeFigure) { setContainerFigure((CompositeFigure)figure); super.mouseDown(e, x, y); } else { toolDone(); }
	public void mouseDown(MouseEvent e, int x, int y) {		Figure figure = getFigureWithoutDecoration(drawing().findFigure(e.getX(), e.getY()));		if ((figure != null) && (figure instanceof CompositeFigure)) {			setContainerFigure((CompositeFigure)figure);			super.mouseDown(e, x, y);		}		else {			toolDone();		}	}