Package org.openbp.jaspira.gui.interaction

Examples of org.openbp.jaspira.gui.interaction.DragAwareRegion


    {
      for (Iterator it = pageButtonsByPage.values().iterator(); it.hasNext();)
      {
        PageButton next = (PageButton) it.next();

        DragAwareRegion region = new BasicDragReactor(next, this, next, 1000);
        result.add(region);
      }
    }

    return result;
View Full Code Here


      int height = tabbedPane.getSelectedComponent().getBounds().height;
      shape.y += height;
      shape.height -= height;

      // We have tabs, we generate a tabswitch region
      DragAwareRegion region = new BasicDragReactor("tabs", this, shape, tabbedPane, 1000);

      result.add(region);
    }

    // Our standardRegions only react to pluginStatesFlavor, so
    // this is what we check for.
    if (flavors.contains(StandardFlavors.PLUGIN) || flavors.contains(StandardFlavors.PLUGIN_STATE))
    {
      // Create and add our standard regions
      BasicDropRegion region;

      // Identifier for NORTH, this is DropCLient, shape, framecolor black, no Stroke,
      // Fill Red, default cursor, no overlay, copy and move actions, this component.
      region = new BasicDropRegion(REGION_NORTH, this, new RectangleSegment(this, 15, PluginContainer.NORTH), this);
      region.setFrameColor(Color.BLACK);
      region.setPaint(Color.GREEN);
      result.add(region);

      region = new BasicDropRegion(REGION_SOUTH, this, new RectangleSegment(this, 15, PluginContainer.SOUTH), this);
      region.setFrameColor(Color.BLACK);
      region.setPaint(Color.GREEN);
      result.add(region);

      region = new BasicDropRegion(REGION_WEST, this, new RectangleSegment(this, 15, PluginContainer.WEST), this);
      region.setFrameColor(Color.BLACK);
      region.setPaint(Color.GREEN);
      result.add(region);

      region = new BasicDropRegion(REGION_EAST, this, new RectangleSegment(this, 15, PluginContainer.EAST), this);
      region.setFrameColor(Color.BLACK);
      region.setPaint(Color.GREEN);
      result.add(region);
    }

    return result;
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.gui.interaction.DragAwareRegion

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.