Package org.jamesii.gui.application.james.dnd

Examples of org.jamesii.gui.application.james.dnd.DropableGlassPane


  public void started() {
    BasicUtilities.invokeLaterOnEDT(new Runnable() {

      @Override
      public void run() {
        DropableGlassPane glassPane = new DropableGlassPane();

        glassPane.addDropRegion(new WindowDropRegion(null,
            Contribution.LEFT_VIEW, content) {

          @Override
          public Rectangle getBounds() {
            Rectangle bounds =
                getWindowManager().getMainWindow().getContentPane().getBounds();

            bounds.height = (bounds.height - bounds.y) * 2 / 3;
            bounds.width = bounds.width / 3;

            return bounds;
          }
        });

        glassPane.addDropRegion(new WindowDropRegion(null,
            Contribution.RIGHT_VIEW, content) {

          @Override
          public Rectangle getBounds() {
            Rectangle bounds =
                getWindowManager().getMainWindow().getContentPane().getBounds();

            bounds.height = (bounds.height - bounds.y) * 2 / 3;
            bounds.width = bounds.width / 3;
            bounds.x = bounds.x + bounds.width * 2;

            return bounds;
          }
        });

        glassPane.addDropRegion(new WindowDropRegion(null,
            Contribution.BOTTOM_VIEW, content) {

          @Override
          public Rectangle getBounds() {
            Rectangle bounds =
                getWindowManager().getMainWindow().getContentPane().getBounds();

            bounds.height = (bounds.height - bounds.y) / 3;
            bounds.y = bounds.y + bounds.height * 2;

            return bounds;
          }
        });

        glassPane
.addDropRegion(new WindowDropRegion(null, Contribution.EDITOR,
            content) {

              @Override
              public Rectangle getBounds() {
View Full Code Here

TOP

Related Classes of org.jamesii.gui.application.james.dnd.DropableGlassPane

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.