Esempio n. 1
0
 private void onMouseExited(MouseEvent event) {
   BoundableRenderable oldTarget = this.mousePressTarget;
   if (oldTarget != null) {
     this.mousePressTarget = null;
     oldTarget.onMouseDisarmed(event);
   }
 }
Esempio n. 2
0
 private void onMouseReleased(MouseEvent event) {
   Point point = event.getPoint();
   BoundableRenderable r = this.rblock.getRenderable(point);
   if (r != null) {
     Rectangle bounds = r.getBounds();
     r.onMouseReleased(event, point.x - bounds.x, point.y - bounds.y);
   }
   BoundableRenderable oldTarget = this.mousePressTarget;
   if (oldTarget != null) {
     this.mousePressTarget = null;
     if (oldTarget != r) {
       oldTarget.onMouseDisarmed(event);
     }
   }
 }