Examples of dispose()


Examples of org.nlogo.api.Graphics2DWrapper.dispose()

    Graphics2DWrapper g = new Graphics2DWrapper((java.awt.Graphics2D) image.getGraphics());
    g.antiAliasing(true);
    try {
      shape.paint(g, color, 0, 0, turtleSize, cellSize, angle, 0.0);
    } finally {
      g.dispose();
    }
  }

  public void draw(GraphicsInterface g, double size) {
    g.drawImage(image);
View Full Code Here

Examples of org.nlogo.nvm.Workspace.dispose()

      SimpleJobOwner owner   = new SimpleJobOwner("ImageGenerator", ws.world().mainRNG, Observer.class);
      ws.runCompiledCommands(owner, ws.compileCommands(command));

      image = ws.exportView();

      ws.dispose();

      return image;

    } catch(InterruptedException e) {
      //headless.dispose method can potentially throw an InterruptedException
View Full Code Here

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.ContentWindow.dispose()

                    ContentWindow window = (ContentWindow) SwingUtilities.windowForComponent(content.getComponent());
                    window.removeDockable(content);

                    if (window.getDockableCount() <= 0) {
                        window.setVisible(false);
                        window.dispose();
                    }

                    contentValueAdjusting = true;
                    try {
                        int index = 0;
View Full Code Here

Examples of org.ogce.gfac.provider.Provider.dispose()

    buildChains(getPostExecuteSteps(context)).start(context);

    /*
     * Destroy
     */
    provider.dispose(context);
   
    /*
     * Pre-Process
     */
    postProcess(context);
 
View Full Code Here

Examples of org.olat.core.gui.control.ChiefController.dispose()

          currentWindow.dispatchRequest(ureq, false);
          return;
        } else {         
          // If path contains complete URL, dispose and start from scratch
          Windows.getWindows(ureq).deregisterWindow(currentWindow);
          cc.dispose();         
        }
      }
     
      // Creator code to create
      // 1) the chief controller
View Full Code Here

Examples of org.olat.core.gui.control.Controller.dispose()

   * @see org.olat.core.gui.control.DefaultController#doDispose(boolean)
   */
  protected void doDispose() {
    for (Iterator it_conts = controllers.iterator(); it_conts.hasNext();) {
      Controller cont = (Controller) it_conts.next();
      cont.dispose();
    }
  }

}
View Full Code Here

Examples of org.olat.core.gui.control.Disposable.dispose()

    // cleanup temporary files)
    Map<String, FormItem> formItems = this.getFormComponents();
    for (FormItem formItem : formItems.values()) {
      if (formItem instanceof Disposable) {
        Disposable disposableFormItem = (Disposable) formItem;
        disposableFormItem.dispose();
      }
    }
  }
 
}
View Full Code Here

Examples of org.olat.core.gui.control.WindowBackOffice.dispose()

          new RedirectMediaResource(StaticMediaDispatcher.createStaticURIFor("closewindow.html")));
      // release all resources and close window
      WindowBackOffice wbo = getWindowControl().getWindowBackOffice();
      Window w = wbo.getWindow();
      Windows.getWindows(ureq).deregisterWindow(w);
      wbo.dispose();

    } else if (source == langSelection) {
      String langKey = langSelection.getSelectedKey();
      Locale locale = I18nManager.getInstance().getLocaleOrDefault(langKey);
      setLocale(locale, true);
View Full Code Here

Examples of org.olat.core.gui.control.controller.BasicController.dispose()

      // TODO Auto-generated method stub
   
      }
   
    };
    dummy.dispose();
    dummy = null;
  }

  private Set<Long> getReadSet(Identity s) {
    // FIXME:fj:c put the whole readset of 1 user / 1 forum in one property
View Full Code Here

Examples of org.olat.core.gui.control.generic.portal.PortletContainer.dispose()

  protected void doDispose() {
    // cleanup all portlet containers
    Iterator iter = portletContainers.values().iterator();
    while (iter.hasNext()) {
      PortletContainer element = (PortletContainer) iter.next();
      element.dispose();
    }
    portletContainers = null;
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.