Examples of DragGestureListener


Examples of java.awt.dnd.DragGestureListener

                }
            }
        });

        // Drag and dtop
        DragGestureListener dragGestureListener = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent event) {
                ComponentSelector.this.dragGestureRecognized(event);
            }
        };
        DragSource dragSource = DragSource.getDefaultDragSource();
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

   */
  public void testSimple()
  {
    DragSource s = new DragSource();
    Component c = new Component(){};
    DragGestureListener l = new DragGestureListener()
    {

      public void dragGestureRecognized(DragGestureEvent e)
      {
        // TODO Auto-generated method stub
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

      state.setProperty(SCALE, scale = "1.0");
    jgraph.setScale(Double.parseDouble(scale));

    DragSource dragSource = DragSource.getDefaultDragSource();
    dragSource.createDefaultDragGestureRecognizer(this.jgraph,
        DnDConstants.ACTION_MOVE, new DragGestureListener() {

          DefaultGraphCell moveCell = null;
          ModelGraph moveGraph = null;

          public void dragGestureRecognized(final DragGestureEvent dge) {
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

  /**
   *
   */
  protected void installDragGestureHandler()
  {
    DragGestureListener dragGestureListener = new DragGestureListener()
    {
      public void dragGestureRecognized(DragGestureEvent e)
      {
        if (graphComponent.isDragEnabled() && first != null)
        {
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

         
          DragSource dragSource = DragSource.getDefaultDragSource();
          dragSource.createDefaultDragGestureRecognizer(
            btn, // component where drag originates
            DnDConstants.ACTION_COPY_OR_MOVE, // actions
            new DragGestureListener(){
              /**
               * start of D&D framework implementation
               */
             
              public void dragGestureRecognized(DragGestureEvent e) {
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

      }

    });

    // Install the handler for dragging nodes into a graph
    DragGestureListener dragGestureListener = new DragGestureListener()
    {
      /**
       *
       */
      public void dragGestureRecognized(DragGestureEvent e)
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

                }
            }
        });

        // Drag and dtop
        DragGestureListener dragGestureListener = new DragGestureListener() {
            public void dragGestureRecognized(DragGestureEvent event) {
                ComponentSelector.this.dragGestureRecognized(event);
            }
        };
        DragSource dragSource = DragSource.getDefaultDragSource();
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

        menuBar.add(helpMenu);
        this.setJMenuBar(menuBar);
       
        //���infoExplorerUI��dragЧ��
        DragSource dragSource = DragSource.getDefaultDragSource();
        DragGestureListener infoExplorerUIDragGestureListener = (DragGestureListener) infoExplorerNGObject.getInterface(de.FeatureModellingTool.InfoExplorer.Manager.DRAGGESTURELISTENER_INTERFACE);
        dragSource.createDefaultDragGestureRecognizer(infoExplorerUI, DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
        //
       
        //���graphicalEditor��dropЧ��
        DropTarget dropTarget = new DropTarget(null, DnDConstants.ACTION_LINK, graphicalEditorDropTargetListener, true, null);
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

        menuBar.add(helpMenu);
        // this.setJMenuBar(menuBar);
       
        // ���infoExplorerUI��dragЧ��
        DragSource dragSource = DragSource.getDefaultDragSource();
        DragGestureListener infoExplorerUIDragGestureListener = (DragGestureListener) infoExplorerNGObject
                .getInterface(de.FeatureModellingTool.InfoExplorer.Manager.DRAGGESTURELISTENER_INTERFACE);
        dragSource.createDefaultDragGestureRecognizer(infoExplorerUI,
                DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
        //
       
View Full Code Here

Examples of java.awt.dnd.DragGestureListener

    menuBar.add(helpMenu);
    // this.setJMenuBar(menuBar);

    // ���infoExplorerUI��dragЧ��
    DragSource dragSource = DragSource.getDefaultDragSource();
    DragGestureListener infoExplorerUIDragGestureListener = (DragGestureListener) infoExplorerNGObject
        .getInterface(de.FeatureModellingTool.InfoExplorer.Manager.DRAGGESTURELISTENER_INTERFACE);
    dragSource.createDefaultDragGestureRecognizer(infoExplorerUI,
        DnDConstants.ACTION_LINK, infoExplorerUIDragGestureListener);
    //
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.