Examples of dispose()


Examples of com.alibaba.simpleimage.render.WriteRender.dispose()

    protected void write(ImageRender dr) throws SimpleImageException, IOException {
        ImageRender wr = new WriteRender(dr, rpath.getCanonicalPath() + File.separator
                                             + "DRAWTEXT_334.jpg");
        wr.render();
        wr.dispose();
    }

    protected String getFileStr() throws IOException {
        return path.getCanonicalPath() + File.separator + "334.jpg";
    }
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteConnection.dispose()

      synchronized(pendingClose) {
        Iterator<SQLiteConnection> it = pendingClose.iterator();
        while(it.hasNext()) {
          SQLiteConnection conn = it.next();
          log.info("-- Closed a connection pending diposal: " + conn.getDatabaseFile());
          conn.dispose();
          it.remove();
        }
      }
    }
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteStatement.dispose()

              theSkin.displayName = skinsDB.columnString(i); i++;
              theSkin.portraitPath = skinsDB.columnString(i); i++;
              theSkin.splashPath = skinsDB.columnString(i); i++;
              newChamp.skins.add(theSkin);
            }
            skinsDB.dispose();
 
            /*
             * SQLiteStatement itemsDB = connection.prepare(
             * "SELECT * FROM championitems WHERE championId = ?");
             * itemsDB.bind(1, newChamp.ID); while (itemsDB.step()) {
View Full Code Here

Examples of com.apple.audio.CAObject.dispose()

/*     */   {
/* 138 */     Vector localVector = (Vector)clientTable.get(this);
/* 139 */     if (localVector != null) {
/* 140 */       while (!localVector.isEmpty()) {
/* 141 */         CAObject localCAObject = (CAObject)localVector.elementAt(0);
/* 142 */         localCAObject.dispose();
/*     */       }
/*     */     }
/* 145 */     clientTable.remove(this);
/* 146 */     super.dispose();
/*     */   }
View Full Code Here

Examples of com.apple.mrj.internal.awt.PrintingPort.dispose()

      // print the specified container.
      container.printAll(graphics);
     
      graphics.dispose();
      printer.dispose();
    } finally {
      // if caller is waiting for this to complete, then notify.
      if (notifier != null) {
        synchronized(notifier) {
          notifier.notifyAll();
View Full Code Here

Examples of com.arjuna.ats.tools.toolsframework.plugin.ToolPlugin.dispose()

      {
        try
        {
          ToolPlugin plugin = (ToolPlugin) _plugins.get(count);

          plugin.dispose();
        }
        catch (ToolPluginException e)
        {
          System.err.println("An error occurred while trying to dispose of the plugs: " + e);
       
View Full Code Here

Examples of com.atolsystems.atolutilities.AFileChooser.dispose()

        fileChooser.addChoosableFileFilter(filter);
        fileChooser.setAcceptAllFileFilterUsed(true);
        long start = System.nanoTime();
        int option = fileChooser.showOpenDialog(null);
        deadTime += System.nanoTime() - start;
        fileChooser.dispose();
        if (option != JFileChooser.APPROVE_OPTION) {
            throw new StopRequestFromUserException();//if user give up, we give up too...
        }
        fileChooser.saveCurrentPath();//tell the file chooser to remember this location
        outputFile = fileChooser.getSelectedFile();
View Full Code Here

Examples of com.badlogic.gdx.graphics.Pixmap.dispose()

    if (Gdx.app.getType() == ApplicationType.Desktop || Gdx.graphics.isGL20Available() == false) {
      Pixmap pixmap = ETC1.decodeImage(data, Format.RGB565);
      Gdx.gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight(), 0,
        pixmap.getGLFormat(), pixmap.getGLType(), pixmap.getPixels());
      if (useMipMaps) MipMapGenerator.generateMipMap(pixmap, pixmap.getWidth(), pixmap.getHeight(), false);
      pixmap.dispose();
      useMipMaps = false;
    } else {
      Gdx.gl.glCompressedTexImage2D(GL10.GL_TEXTURE_2D, 0, ETC1.ETC1_RGB8_OES, width, height, 0,
        data.compressedData.capacity() - data.dataOffset, data.compressedData);
      if (useMipMaps()) Gdx.gl20.glGenerateMipmap(GL20.GL_TEXTURE_2D);
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.particles.ParticleController.dispose()

  public void dispose () {
    if(controller != null){
      for(int i=0; i < controller.particles.size; ++i){
        ParticleController controller = particleControllerChannel.data[i];
        if(controller != null){
          controller.dispose();
          particleControllerChannel.data[i]= null;
        }
      }
    }
  }
View Full Code Here

Examples of com.badlogic.gdx.physics.box2d.ChainShape.dispose()

        new Vector2(-halfWidth, viewportHeight) });
    BodyDef chainBodyDef = new BodyDef();
    chainBodyDef.type = BodyType.StaticBody;
    groundBody = world.createBody(chainBodyDef);
    groundBody.createFixture(chainShape, 0);
    chainShape.dispose();
    createBoxes();
  }

  private void createBoxes() {
    CircleShape ballShape = new CircleShape();
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.