Package java.awt.event

Examples of java.awt.event.MouseMotionListener


          editPoint();
        }
      }
    });
   
    this.addMouseMotionListener(new MouseMotionListener() {
      public void mouseDragged(MouseEvent e) {
        movePoint(e.getX(), e.getY());
        repaint(0);
      }
View Full Code Here


      // load image
      backgroundImage = loadBackgroundImage();

      // mouse motion listener to forward events to the gradient
      this.addMouseMotionListener(new MouseMotionListener() {
        public void mouseDragged(MouseEvent e) {
          mouseDraggedEvent(e.getX(), e.getY(), e.isShiftDown());
        }

        public void mouseMoved(MouseEvent e) {
View Full Code Here

        repaint();
      }
    });

    /* Popup menu */
    canvas.addMouseMotionListener(new MouseMotionListener() {
      public void mouseMoved(MouseEvent e) {
        handleMouseMove(e, false);
      }
      public void mouseDragged(MouseEvent e) {
        handleMouseMove(e, false);
View Full Code Here

            @Override
            public void mouseExited(final MouseEvent e) {
            }
        });

        this.addMouseMotionListener(new MouseMotionListener() {

            @Override
            public void mouseDragged(final MouseEvent e) {
                final int x = (int) (e.getPoint().getX() / Float.parseFloat(String.valueOf(GeneralConstant.BLOC_WIDTH)));
                final int y = (int) (e.getPoint().getY() / Float.parseFloat(String.valueOf(GeneralConstant.BLOC_HEIGHT)));
View Full Code Here

TOP

Related Classes of java.awt.event.MouseMotionListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.