亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? imageloadfilter.java

?? swing編寫的庫存管理程序。畢業設計類
?? JAVA
字號:
/**
 * ========================================
 * JFreeReport : a free Java report library
 * ========================================
 *
 * Project Info:  http://www.jfree.org/jfreereport/index.html
 * Project Lead:  Thomas Morgner;
 *
 * (C) Copyright 2000-2002, by Simba Management Limited and Contributors.
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * --------------------
 * ImageLoadFilter.java
 * --------------------
 * (C)opyright 2000-2002, by Simba Management Limited.
 *
 * $Id: ImageLoadFilter.java,v 1.2 2003/08/24 15:13:22 taqua Exp $
 *
 * ChangeLog
 * --------------------------------------
 * 21-May-2002 : Initial version
 * 06-Jun-2002 : Documentation
 * 03-Jul-2002 : Serializable, Cloneable implemented
 * 28-Aug-2002 : Documentation again
 */
package org.jfree.report.filter;

import java.io.IOException;
import java.io.Serializable;
import java.net.URL;

import org.jfree.report.ImageReference;
import org.jfree.report.util.KeyedQueue;
import org.jfree.report.util.Log;

/**
 * The image load filter is used to load images during the report generation process.
 * This filter expects its datasource to return a java.net.URL. If the datasource does
 * not return an URL, <code>null</code> is returned.
 * <p>
 * This filter is mostly used in conjunction with the URLFilter, which creates URLs
 * from Strings and files if nessesary.
 * <p>
 * The url is used to create a new imagereference which is returned to the caller.
 * The loaded/created imagereference is stored in an internal cache.
 * <p>
 * This filter can be used to dynamically change images of a report, a very nice feature
 * for photo albums and catalogs for instance.
 * <p>
 * This filter will return null, if something else than an URL was retrieved from the
 * assigned datasource
 *
 * @author Thomas Morgner
 */
public class ImageLoadFilter implements DataFilter, Serializable
{
  /**
   * the cache for previously loaded images. If the maximum size of the cache reached,
   *
   */
  private KeyedQueue imageCache;

  /**
   * The datasource from where to read the urls.
   */
  private DataSource source;

  /**
   * creates a new ImageLoadFilter with a cache size of 10.
   */
  public ImageLoadFilter()
  {
    this(1);
  }

  /**
   * Creates a new ImageLoadFilter with the defined cache size.
   *
   * @param cacheSize  the cache size.
   */
  public ImageLoadFilter(final int cacheSize)
  {
    imageCache = new KeyedQueue(cacheSize);
  }

  /**
   * Reads this filter's datasource and if the source returned an URL, tries to form
   * a imagereference. If the image is loaded in a previous run and is still in the cache,
   * no new reference is created and the previously loaded reference is returned.
   *
   * @return  the current value for this filter.
   */
  public Object getValue()
  {
    final DataSource ds = getDataSource();
    if (ds == null)
    {
      return null;
    }
    final Object o = ds.getValue();
    if (o == null)
    {
      return null;
    }

    if (o instanceof URL == false)
    {
      return null;
    }

    // a valid url is found, lookup the url in the cache, maybe the image is loaded and
    // still there.
    final URL url = (URL) o;
    Object retval = imageCache.get(url);
    if (retval == null)
    {
      try
      {
        retval = new ImageReference(url);
      }
      catch (IOException ioe)
      {
        Log.warn("Error while loading the image from " + url, ioe);
        return null;
      }
    }
    // update the cache and put the image at the top of the list
    imageCache.put(url, retval);
    return retval;
  }

  /**
   * Returns the data source for the filter.
   *
   * @return The data source.
   */
  public DataSource getDataSource()
  {
    return source;
  }

  /**
   * Sets the data source.
   *
   * @param ds The data source.
   */
  public void setDataSource(final DataSource ds)
  {
    if (ds == null)
    {
      throw new NullPointerException();
    }

    source = ds;
  }

  /**
   * Clones the filter.
   *
   * @return a clone.
   *
   * @throws CloneNotSupportedException this should never happen.
   */
  public Object clone() throws CloneNotSupportedException
  {
    final ImageLoadFilter il = (ImageLoadFilter) super.clone();
    il.imageCache = (KeyedQueue) imageCache.clone();
    if (source != null)
    {
      il.source = (DataSource) source.clone();
    }
    return il;
  }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男人电影天堂| 国产精品久久久久久亚洲伦| 成人动漫一区二区三区| 国产一区二区在线观看视频| 久久99国内精品| 国内精品伊人久久久久av影院| 美脚の诱脚舐め脚责91 | 日韩不卡一二三区| 一区二区三区久久| 一区二区三区四区在线免费观看| 亚洲精品视频免费看| 亚洲激情自拍偷拍| 亚洲成人精品一区| 久久99在线观看| 国产精品一区二区在线观看不卡 | 国产一区二区三区四| 国产一区二区免费在线| 成人在线视频一区二区| 91猫先生在线| 欧美日韩国产美女| 精品国产一区二区三区久久影院| 久久女同性恋中文字幕| 最近日韩中文字幕| 日日夜夜一区二区| 国产电影一区二区三区| 91在线播放网址| 欧美一级在线免费| 国产欧美日韩在线观看| 亚洲一区二区三区在线| 久久精品国产一区二区| 成人午夜电影久久影院| 欧洲精品中文字幕| 精品久久久久久综合日本欧美| 中文字幕 久热精品 视频在线| 亚洲一二三区在线观看| 精品午夜一区二区三区在线观看| 丰满放荡岳乱妇91ww| 欧美日韩在线播放一区| 久久久综合视频| 午夜在线成人av| 成人激情视频网站| 欧美一级黄色大片| 一区二区三区色| 丰满少妇久久久久久久| 777精品伊人久久久久大香线蕉| 国产欧美一区二区精品性色超碰| 一区二区高清视频在线观看| 精品制服美女丁香| 欧美影院一区二区| 国产精品萝li| 国产乱淫av一区二区三区 | 95精品视频在线| 狠狠v欧美v日韩v亚洲ⅴ| 国产一区二区三区| 91麻豆123| 精品国产一区二区三区久久久蜜月| 中文无字幕一区二区三区| 天天射综合影视| 在线亚洲一区观看| 国产精品久久综合| 国内偷窥港台综合视频在线播放| 欧美色成人综合| 一区二区三区在线不卡| 北条麻妃国产九九精品视频| 337p日本欧洲亚洲大胆精品| 日韩中文字幕区一区有砖一区| 91免费视频网址| 中文子幕无线码一区tr| 国产一区二区三区av电影| 日韩精品一区二区三区在线| 日韩在线a电影| 91精品国产一区二区三区蜜臀| 樱桃国产成人精品视频| 91浏览器在线视频| 亚洲乱码国产乱码精品精的特点| 成人激情综合网站| 亚洲国产精品一区二区www| 91小视频免费看| 最新久久zyz资源站| 99国产欧美另类久久久精品| 国产精品午夜在线观看| 成人爽a毛片一区二区免费| 国产精品人妖ts系列视频| 成人一区在线观看| 国产精品电影院| 色播五月激情综合网| 亚洲精品日产精品乱码不卡| 在线观看一区不卡| 亚洲成人综合网站| 欧美一区二区高清| 国产成人在线影院| 18成人在线视频| 欧美在线制服丝袜| 老司机免费视频一区二区| 久久久久成人黄色影片| av电影在线观看完整版一区二区| 亚洲人xxxx| 欧美一区二区三区啪啪| 国产综合成人久久大片91| 亚洲国产精品黑人久久久| 色综合久久88色综合天天免费| 亚洲国产va精品久久久不卡综合| 51午夜精品国产| 国产精品资源在线观看| 亚洲视频1区2区| 91精品麻豆日日躁夜夜躁| 国产成人午夜精品5599| 樱花影视一区二区| 精品国产污污免费网站入口 | 国产精品久久久久天堂| 色悠久久久久综合欧美99| 视频一区二区中文字幕| 五月天婷婷综合| 久久美女艺术照精彩视频福利播放| 99精品在线免费| 美女视频一区二区三区| 日韩理论在线观看| 精品国内二区三区| 在线看不卡av| 国产激情一区二区三区| 亚洲成人高清在线| 国产精品亲子乱子伦xxxx裸| 这里只有精品视频在线观看| 成人激情电影免费在线观看| 日本中文字幕一区二区视频| 1000部国产精品成人观看| xnxx国产精品| 欧美精品日韩一区| 色婷婷一区二区| 国产成人综合在线播放| 奇米一区二区三区av| 亚洲一区在线观看免费| 国产精品无码永久免费888| 日韩一区二区在线播放| 欧美三级一区二区| 成人黄页在线观看| 国产激情一区二区三区四区 | 精品国产一区二区亚洲人成毛片 | 国产精品免费看片| 日韩欧美在线不卡| 欧美精品一二三四| 欧美日韩亚洲国产综合| 91网站最新网址| 成人午夜精品在线| 国产精品综合视频| 激情综合网最新| 激情综合网天天干| 精品一区二区影视| 丰满亚洲少妇av| 国产麻豆一精品一av一免费| 久久精品理论片| 精品一区二区三区视频| 久久精品99国产国产精| 久久爱另类一区二区小说| 蜜桃在线一区二区三区| 免费看日韩a级影片| 免费黄网站欧美| 精久久久久久久久久久| 久久9热精品视频| 国产美女精品人人做人人爽| 国内精品不卡在线| 国产91精品在线观看| 成人动漫一区二区在线| 99re66热这里只有精品3直播| av不卡在线播放| 91九色02白丝porn| 制服丝袜亚洲精品中文字幕| 日韩亚洲欧美成人一区| 久久一区二区视频| 国产精品不卡在线观看| 玉米视频成人免费看| 图片区小说区国产精品视频| 免费精品视频最新在线| 国产一区二三区| 99在线视频精品| 欧美日韩激情在线| 久久综合99re88久久爱| 综合久久综合久久| 视频精品一区二区| 国产高清亚洲一区| 91麻豆6部合集magnet| 欧美裸体bbwbbwbbw| 久久久精品天堂| 一区二区三区丝袜| 狠狠色狠狠色综合日日91app| 成人爽a毛片一区二区免费| 欧美系列一区二区| 久久精品一区四区| 香蕉影视欧美成人| 成人理论电影网| 884aa四虎影成人精品一区| 久久久99免费| 婷婷中文字幕一区三区| 在线视频亚洲一区| 久久久99精品免费观看不卡| 亚洲一区在线看| www.欧美日韩| 精品国产a毛片| 爽好多水快深点欧美视频| 成人app网站|