Package org.openbp.cockpit.modeler

Examples of org.openbp.cockpit.modeler.Modeler


    {
      Object source = je.getSource();

      if (source instanceof Modeler)
      {
        Modeler modeler = (Modeler) source;
        if (modeler.getPluginComponent().isShowing())
        {
          // The selection of the active modeler changed.
          // Update the toggle breakpoint action status.
          updateActions();
        }
View Full Code Here


    // Load the process
    ProcessItem process = (ProcessItem) ModelConnector.getInstance().getItemByQualifier(qualifier, true);

    // Create a modeler instance and its associated drawing view
    Modeler modeler = (Modeler) PluginMgr.getInstance().createInstance(Modeler.class, this);
    try
    {
      // Make the modeler operate on the given process
      modeler.setProcess(process, true);
    }
    catch (Exception e)
    {
      PluginMgr.getInstance().removeInstance(modeler);
      return null;
    }

    WorkspaceDrawingView view = new WorkspaceDrawingView(modeler);
    view.setDrawing(modeler.getDrawing());
    view.setScaleFactor(scaleFactor);

    ImageExporter imageExporter = null;
    try
    {
View Full Code Here

   * @param y Document coordinate
   * @see CH.ifa.draw.framework.Tool#mouseUp(MouseEvent, int, int)
   */
  public void mouseUp(MouseEvent e, int x, int y)
  {
    Modeler modeler = miniView.getModeler();
    if (modeler != null)
    {
      if (e.getClickCount() == 2)
      {
        modeler.setScaleFactor(1.0);
        modeler.centerTrackerAt(calculateDocumentCoordinates(e.getPoint()));
      }
      else if (tracking)
      {
        miniView.setTrackRect(null);
        int rx = x < lastX ? x : lastX;
        int ry = y < lastY ? y : lastY;
        int w = x < lastX ? lastX - x : x - lastX;
        int h = y < lastX ? lastY - y : y - lastY;
        Rectangle r = new Rectangle(rx, ry, w, h);
        modeler.setVisibleArea(calculateDocumentCoordinates(r));
      }
      else
      {
        modeler.centerTrackerAt(calculateDocumentCoordinates(e.getPoint()));
      }
    }

    tracking = false;

View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.Modeler

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.