Package org.openbp.jaspira.gui.interaction

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


   */
  public List getDropRegions(List flavors, Transferable data, MouseEvent mouseEvent)
  {
    if (flavors.contains(ClientFlavors.TYPE_ITEM))
    {
      BasicDropRegion region = new BasicDropRegion(MAINREGION, this, getPluginComponent());
      region.setPaint(ModelerColors.DROP_REGION);
      return Collections.singletonList(region);
    }

    return null;
  }
View Full Code Here


    // add page switch regions on our buttons
    // Do not add the regions when a plugin is beeing dragged

    if (flavors.contains(StandardFlavors.PLUGIN) || flavors.contains(StandardFlavors.PLUGIN_STATE))
    {
      BasicDropRegion region = new BasicDropRegion(OPENINFRAME_REGION, this, openInDialogLabel);
      region.setFrameColor(Color.BLUE);
      result.add(region);
    }
    else
    {
      for (Iterator it = pageButtonsByPage.values().iterator(); it.hasNext();)
View Full Code Here

    // 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.BasicDropRegion

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.