Examples of addDragSourceMotionListener()


Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

    }

    public static void registerDragGesture(Component c, DragGesture dragGesture) {
        DragSource dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragGesture);
        dragSource.addDragSourceMotionListener(dragGesture);
    }

    public static boolean isLeftToRight(Component c) {
        return c != null && c.getComponentOrientation().isLeftToRight();
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

        if (dragGesture == null)
            initDragGesture();

        DragSource dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragGesture);
        dragSource.addDragSourceMotionListener(dragGesture);
    }

    protected void initDragGesture() {
        this.dragGesture = new CustomRepresentativeAnchorDragGesture(this);
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

    }

    public static void registerDragGesture(Component c, DragGesture dragGesture) {
        DragSource dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragGesture);
        dragSource.addDragSourceMotionListener(dragGesture);
    }

    public static boolean isLeftToRight(Component c) {
        return c != null && c.getComponentOrientation().isLeftToRight();
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

        if (dragListener == null)
            initDragListener();

        DragSource dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragListener);
        dragSource.addDragSourceMotionListener(dragListener);
    }

    protected void initDragListener() {
        this.dragListener = new CustomRepresentativeAnchorDragListener(this);
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

        if (dragEntryMap.containsKey(c))
            return dragEntryMap.get(c).dragGestureRecognizer;

        DragSource dragSource = new DragSource();
        DragGestureRecognizer recognizer = dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragListener);
        dragSource.addDragSourceMotionListener(dragListener);

        dragEntryMap.put(c, new DragEntry(recognizer, dragListener));

        return recognizer;
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

    }

    public static void registerDragGesture(Component c, DragGesture dragGesture) {
        DragSource dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(c, DnDConstants.ACTION_MOVE, dragGesture);
        dragSource.addDragSourceMotionListener(dragGesture);
    }

    public static boolean isLeftToRight(Component c) {
        return c != null && c.getComponentOrientation().isLeftToRight();
    }
View Full Code Here

Examples of java.awt.dnd.DragSource.addDragSourceMotionListener()

            }
          }
          dndHandler = null;
        }
      };
      dragSource.addDragSourceMotionListener(dragSourceListener);
      dragSource.addDragSourceListener(dragSourceListener);
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.