コード例 #1
0
 /**
  * Reimplementación del método mouseDragged de Behavior.
  *
  * @param e MouseEvent
  * @throws BehaviorException
  */
 public void mouseDragged(MouseEvent e) throws BehaviorException {
   super.mouseDragged(e);
   PointEvent event = new PointEvent(e.getPoint(), e);
   listener.drag(event);
   dragged = true;
 }
コード例 #2
0
 public void mouseMoved(MouseEvent e) throws BehaviorException {
   super.mouseMoved(e);
   PointEvent event = new PointEvent(e.getPoint(), e);
   listener.move(event);
 }
コード例 #3
0
 /**
  * Reimplementación del método mouseReleased de Behavior.
  *
  * @param e MouseEvent
  * @throws BehaviorException Excepción lanzada cuando el Behavior.
  */
 public void mouseReleased(MouseEvent e) throws BehaviorException {
   super.mouseReleased(e);
   PointEvent event = new PointEvent(e.getPoint(), e);
   listener.release(event);
   dragged = false;
 }