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