Package org.openbp.jaspira.gui.interaction

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


    Rectangle localBounds = SwingUtil.convertBoundsToGlassCoords(pane.getViewport());
    if (localBounds.contains(p))
    {
      List result = new ArrayList();

      result.add(new Importer("addNode", this, new DataFlavor [] { ClientFlavors.NODE_PROVIDER }));
      result.add(new Importer("addTextElement", this, new DataFlavor [] { ClientFlavors.TEXT_ELEMENT }));
      result.add(new Importer("addHLine", this, new DataFlavor [] { ModelerFlavors.HLINE }));
      result.add(new Importer("addVLine", this, new DataFlavor [] { ModelerFlavors.VLINE }));

      return result;
    }

    return null;
View Full Code Here


  {
    WorkspaceDrawingView view = getDrawing().getView();

    Point docPoint = SwingUtil.convertFromGlassCoords(p, view);
    if (presentationFigure.containsPoint(docPoint.x, docPoint.y))
      return Collections.singletonList(new Importer(socket.getQualifier(), this, new DataFlavor[]
      {
        ClientFlavors.TYPE_ITEM, ModelerFlavors.COLOR
      }));

    return null;
View Full Code Here

  {
    WorkspaceDrawingView view = getDrawing().getView();

    Point docPoint = SwingUtil.convertFromGlassCoords(p, view);
    if (presentationFigure.containsPoint(docPoint.x, docPoint.y))
      return Collections.singletonList(new Importer(node.getQualifier(), this, new DataFlavor[]
      {
        ClientFlavors.NODE_SOCKET, ModelerFlavors.COLOR
      }));

    return null;
View Full Code Here

  {
    WorkspaceDrawingView view = getDrawing().getView();

    Point docPoint = SwingUtil.convertFromGlassCoords(p, view);
    if (containsPoint(docPoint.x, docPoint.y))
      return Collections.singletonList(new Importer(REGION_COLOR, this, new DataFlavor[]
      {
        ModelerFlavors.COLOR
      }));

    return null;
View Full Code Here

  {
    List list = new ArrayList();

    for (Iterator it = importers.iterator(); it.hasNext();)
    {
      Importer importer = (Importer) it.next();

      DataFlavor[] flavors = importer.getFlavors();

      for (Iterator itEntries = entries.iterator(); itEntries.hasNext();)
      {
        ToolBoxItem item = (ToolBoxItem) itEntries.next();
View Full Code Here

TOP

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

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.