Package org.openbp.swing.components

Examples of org.openbp.swing.components.DragGlassPane


  }

  private void drawTargetRect(Component subject, int x, int y)
  {
    // Get the instance of the global drag glass pane used to draw the drag shadow
    DragGlassPane gp = DragGlassPane.getInstance();

    // Activate the drag shadow glass pane for the root pane container of this component
    gp.activate(this);

    // Convert the point to glass pane coordinates
    Point offset = SwingUtilities.convertPoint(subject, x, y, gp);

    // Draw the target rectangle
    Rectangle targetRect = new Rectangle(offset.x, offset.y, subject.getWidth(), subject.getHeight());
    gp.drawRectangle(targetRect, true);
  }
View Full Code Here


    if (!liveLayout)
    {
      // Draw the shadow

      // Get the instance of the global drag glass pane used to draw the drag shadow
      DragGlassPane gp = DragGlassPane.getInstance();

      // Convert the point to glass pane coordinates
      Point barLoc = SwingUtilities.convertPoint(this, delta, gp);

      // Draw the target rectangle
      Rectangle targetRect = new Rectangle(barLoc.x, barLoc.y, getWidth(), getHeight());
      gp.drawRectangle(targetRect, true);
    }
  }
View Full Code Here

TOP

Related Classes of org.openbp.swing.components.DragGlassPane

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.