public boolean didClickTextControl(Point requestLoc) { IFigure figure = getTextControl(); if (figure != null) { figure.translateToRelative(requestLoc); return figure.containsPoint(requestLoc); } return false; }
protected boolean receives(int x, int y) { return slotFigure.containsPoint(x, y) || blockFigure.containsPoint(x, y); }