Package com.aelitis.azureus.ui.swt.imageloader

Examples of com.aelitis.azureus.ui.swt.imageloader.ImageLoader.releaseImage()


      public void runSupport() {
        final ImageLoader imageLoader = skin.getImageLoader(properties);
        imageLoader.getUrlImage(url, new ImageDownloaderListener() {
          public void imageDownloaded(Image image, boolean returnedImmediately) {
            setCanvasImage(url, null);
            imageLoader.releaseImage(url);
          }
        });
      }
    });
  }
View Full Code Here


  }

  private void disposeImages() {
    if(images != null) {
      ImageLoader imageLoader = ImageLoader.getInstance();
      imageLoader.releaseImage(imageName);
      images = null;
    }
  }

}
View Full Code Here

        Rectangle imgBounds = imgIcon.getBounds();
        gc.drawImage(imgIcon, cellBounds.x
            + ((cellBounds.width - imgBounds.width) / 2), cellBounds.y
            + ((cellBounds.height - imgBounds.height) / 2));
      }
      imageLoader.releaseImage(iconID);
    }
  }

  // @see org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener#refresh(org.gudy.azureus2.plugins.ui.tables.TableCell)
  public void refresh(TableCell cell) {
View Full Code Here

    if ( sub != null && !sub.isSearchTemplate()){

      gc.drawImage(viewImage, bounds.x + bounds.width, bounds.y + bounds.height / 2 - imageHeight / 2);
    }
   
    imageLoader.releaseImage("ic_view");
   
      //gc.drawText(cell.getText(), bounds.x,bounds.y);
  }
 
  public void cellMouseTrigger(TableCellMouseEvent event) {
View Full Code Here

      Rectangle imgBounds = img0.getBounds();
      gcImage.drawImage(img0, 0, 0, imgBounds.width, imgBounds.height, bounds.x
          + limit + 1, bounds.y + yOfs, x1 - limit, imgBounds.height);
    }

    imageLoader.releaseImage("tc_bar_end");
    imageLoader.releaseImage("tc_bar_0");
    imageLoader.releaseImage("tc_bar_1");
   
    if(textColor == null) {
      textColor = ColorCache.getColor(gcImage.getDevice(), "#006600" );
View Full Code Here

      gcImage.drawImage(img0, 0, 0, imgBounds.width, imgBounds.height, bounds.x
          + limit + 1, bounds.y + yOfs, x1 - limit, imgBounds.height);
    }

    imageLoader.releaseImage("tc_bar_end");
    imageLoader.releaseImage("tc_bar_0");
    imageLoader.releaseImage("tc_bar_1");
   
    if(textColor == null) {
      textColor = ColorCache.getColor(gcImage.getDevice(), "#006600" );
    }
View Full Code Here

          + limit + 1, bounds.y + yOfs, x1 - limit, imgBounds.height);
    }

    imageLoader.releaseImage("tc_bar_end");
    imageLoader.releaseImage("tc_bar_0");
    imageLoader.releaseImage("tc_bar_1");
   
    if(textColor == null) {
      textColor = ColorCache.getColor(gcImage.getDevice(), "#006600" );
    }
View Full Code Here

   * @since 3.0.1.5
   */
  public void setImageID(String imageID) {
    ImageLoader imageLoader = ImageLoader.getInstance();
    if (imgOver != null) {
      imageLoader.releaseImage(this.imageID + "-over");
    }
    if (imgOnRow != null) {
      imageLoader.releaseImage(this.imageID + "-mouseonrow");
    }
    if (imgOffRow != null) {
View Full Code Here

    ImageLoader imageLoader = ImageLoader.getInstance();
    if (imgOver != null) {
      imageLoader.releaseImage(this.imageID + "-over");
    }
    if (imgOnRow != null) {
      imageLoader.releaseImage(this.imageID + "-mouseonrow");
    }
    if (imgOffRow != null) {
      imageLoader.releaseImage(this.imageID);
    }
View Full Code Here

    }
    if (imgOnRow != null) {
      imageLoader.releaseImage(this.imageID + "-mouseonrow");
    }
    if (imgOffRow != null) {
      imageLoader.releaseImage(this.imageID);
    }

    this.imageID = imageID;
    if (imageID == null) {
      imgOffRow = 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.