Package org.openbp.cockpit.modeler.drawing

Examples of org.openbp.cockpit.modeler.drawing.WorkspaceDrawingView


      // This doesn't seem to be addressed to the current process
      // or the item to show doesn't exist in this process
      return EVENT_IGNORED;
    }

    WorkspaceDrawingView view = modeler.getDrawingView();
    view.singleSelect(pec);

    return modeler.getPluginComponent().isShowing() ? EVENT_CONSUMED : EVENT_IGNORED;
  }
View Full Code Here


   */
  public JaspiraEventHandlerCode getselectioncount(AskEvent ae)
  {
    if (modeler.getPluginComponent().isShowing())
    {
      WorkspaceDrawingView workspaceView = modeler.getDrawingView();
      ae.setAnswer(new Integer(workspaceView.selectionCount()));

      return EVENT_CONSUMED;
    }

    return EVENT_IGNORED;
View Full Code Here

   */
  public JaspiraEventHandlerCode getselection(AskEvent ae)
  {
    if (modeler.getPluginComponent().isShowing())
    {
      WorkspaceDrawingView workspaceView = modeler.getDrawingView();
      ae.setAnswer(workspaceView.selection());

      return EVENT_CONSUMED;
    }

    return EVENT_IGNORED;
View Full Code Here

    boolean imported = false;
    String regionId = null;
    Transferable transferable = (Transferable) je.getObject();

    // Check if the selection contains something that is flipable
    WorkspaceDrawingView workspaceView = modeler.getDrawingView();
    if (workspaceView != null)
    {
      List selectedFigures = workspaceView.selection();

      int n = selectedFigures.size();
      if (n > 0)
      {
        for (int i = 0; i < n; ++i)
View Full Code Here

   */
  public JaspiraEventHandlerCode modeler_edit_selectall(JaspiraActionEvent jae)
  {
    if (jae.getSourcePlugin() == modeler)
    {
      WorkspaceDrawingView view = modeler.getDrawingView();

      view.clearSelection();

      for (Iterator it = modeler.getDrawing().getAllFigures(); it.hasNext();)
      {
        Figure figure = (Figure) it.next();
        view.addToSelection(figure);
      }

      return EVENT_CONSUMED;
    }

View Full Code Here

  public JaspiraEventHandlerCode modeler_edit_fliporientation(JaspiraActionEvent jae)
  {
    if (jae.getSourcePlugin() == modeler)
    {
      // Flip the data link orientation of all selected figures that are or have data links
      WorkspaceDrawingView workspaceView = modeler.getDrawingView();
      List selectedFigures = workspaceView.selection();

      int n = selectedFigures.size();
      if (n > 0)
      {
        boolean found = false;
View Full Code Here

      AutoConnector autoConnector = new AutoConnector(modeler, newNode);
      autoConnector.autoConnectAll();
    }

    // Select the new element
    WorkspaceDrawingView workspaceView = modeler.getDrawingView();
    workspaceView.singleSelect(addedFigure);

    if (addedFigure instanceof NodeFigure && ((NodeFigure) addedFigure).isCreatedFromScratch())
    {
      // Show the in place editor for all nodes that have been just created
      // (don't show for existing items that have been dragged from the compoennt browser)
View Full Code Here

    // Try to auto-connect the inserted node to the current node/socket.
    AutoConnector autoConnector = new AutoConnector(modeler, newSocket);
    autoConnector.autoConnectAll();

    // Select the new element
    WorkspaceDrawingView workspaceView = modeler.getDrawingView();
    workspaceView.singleSelect(newSocket);

    modeler.getToolSupport().displayInPlaceEditor(newSocket);

    return modeler.getPluginComponent().isShowing() ? EVENT_CONSUMED : EVENT_IGNORED;
  }
View Full Code Here

    }

    ParamFigure newParam = (ParamFigure) je.getObject();

    // Select the new element
    WorkspaceDrawingView workspaceView = modeler.getDrawingView();
    workspaceView.singleSelect(newParam);

    modeler.getToolSupport().displayInPlaceEditor(newParam);

    return modeler.getPluginComponent().isShowing() ? EVENT_CONSUMED : EVENT_IGNORED;
  }
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.drawing.WorkspaceDrawingView

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.