Package rex.graphics.mdxeditor.mdxbuilder.dnd

Examples of rex.graphics.mdxeditor.mdxbuilder.dnd.DragElement


   public static void main(String[] args) {
   
        JFrame frame = new JFrame("Warehouse Explorer");
       
        frame.setGlassPane(new DragElement());
       
        /**
         *   Copyright (C) 2006 CINCOM SYSTEMS, INC.
         *   All Rights Reserved
         *   Copyright (C) 2006 Igor Mekterovic
View Full Code Here


                                       + " " + selectedItem.getCatalogName()
                                       + ":" + selectedItem.getCubeName()
                                       );
  /* end of modification for I18n */

          frame.setGlassPane(new DragElement());// By Prakash.

             //Jules Grengbondai: to allow releasing resources
             final MdxEditor editor = new MdxEditorrestrictions
                                                      , properties
                                                      , selectedItem.getServerMetaData()
View Full Code Here

                     , new Point(10, 10)
                     , transferable
                     , this);
   
    //By Prakash
    DragElement glassPane = (DragElement) SwingUtilities.getRootPane(sourceTree).getGlassPane();
    glassPane.setVisible(true);
    Point point = (Point) dge.getDragOrigin().clone();
    SwingUtilities.convertPointToScreen(point, this);
    SwingUtilities.convertPointFromScreen(point, glassPane);
    glassPane.setPoint(point);
    glassPane.setImage(uniqueName,getItemHeight(),getItemWidth());
    glassPane.showString(true);
    glassPane.repaint();
    //End
  }
View Full Code Here

   */
//By Prakash.
  public void dragMouseMoved(DragSourceDragEvent dsde) {
    try
    {
          DragElement glassPane = (DragElement) SwingUtilities.getRootPane(sourceTree).getGlassPane();
          p = (Point) dsde.getLocation().clone();
          SwingUtilities.convertPointFromScreen(p, glassPane);
          glassPane.setPoint(p);
          glassPane.showString(true);
          glassPane.repaint();
    }
    catch(ClassCastException cce)
    {
      S.out(cce.getMessage());
    }
View Full Code Here

    if (dsde.getDropSuccess()) {
      ((DefaultTreeModel)sourceTree.getModel()).removeNodeFromParent(oldNode);
    }
    */
    //By Prakash
    DragElement glassPane = (DragElement) SwingUtilities.getRootPane(sourceTree).getGlassPane();
    glassPane.setVisible(true);
    //System.out.println("BBB");
    Point point = (Point) dsde.getLocation().clone();
    SwingUtilities.convertPointToScreen(point, this);
    SwingUtilities.convertPointFromScreen(point, glassPane);
    //System.out.println("CCC");
    glassPane.setPoint(point);
    glassPane.showString(false);
    glassPane.repaint();
    //End
  }
View Full Code Here

TOP

Related Classes of rex.graphics.mdxeditor.mdxbuilder.dnd.DragElement

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.