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

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

?? swingresourcemanager.java

?? 記事本的基本功能
?? JAVA
字號:
package com.swtdesigner;import java.awt.Image;import java.awt.Toolkit;import java.io.BufferedInputStream;import java.io.ByteArrayOutputStream;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.util.HashMap;import java.util.Iterator;import javax.swing.ImageIcon;/** * Utility class for managing resources such as colors, fonts, images, etc. *  * This class may be freely distributed as part of any application or plugin. * <p> * Copyright (c) 2003 - 2004, Instantiations, Inc. <br>All Rights Reserved *  * @author scheglov_ke */public class SwingResourceManager {		/**	 * Maps image names to images	 */	private static HashMap<String, Image> m_ClassImageMap = new HashMap<String, Image>();	    /**     * Returns an image encoded by the specified input stream     * @param is InputStream The input stream encoding the image data     * @return Image The image encoded by the specified input stream     */	private static Image getImage(InputStream is) {		try {			ByteArrayOutputStream baos = new ByteArrayOutputStream();			byte buf[] = new byte[1024 * 4];			while (true) {				int n = is.read(buf);				if (n == -1)					break;				baos.write(buf, 0, n);			}			baos.close();			return Toolkit.getDefaultToolkit().createImage(baos.toByteArray());		} catch (Throwable e) {			return null;		}	}	    /**     * Returns an image stored in the file at the specified path relative to the specified class     * @param clazz Class The class relative to which to find the image     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(Class clazz, String path) {		String key = clazz.getName() + '|' + path;		Image image = m_ClassImageMap.get(key);		if (image == null) {			if ((path.length() > 0) && (path.charAt(0) == '/')) {				String newPath = path.substring(1, path.length());				image = getImage(new BufferedInputStream(clazz.getClassLoader().getResourceAsStream(newPath)));			} else {				image = getImage(clazz.getResourceAsStream(path));			}			m_ClassImageMap.put(key, image);		}		return image;	}	    /**     * Returns an image stored in the file at the specified path     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(String path) {		return getImage("default", path); //$NON-NLS-1$	}	    /**     * Returns an image stored in the file at the specified path     * @param section String The storage section in the cache     * @param path String The path to the image file     * @return Image The image stored in the file at the specified path     */	public static Image getImage(String section, String path) {		String key = section + '|' + SwingResourceManager.class.getName() + '|' + path;		Image image = m_ClassImageMap.get(key);		if (image == null) {			try {				FileInputStream fis = new FileInputStream(path);				image = getImage(fis);				m_ClassImageMap.put(key, image);				fis.close();			} catch (IOException e) {				return null;			}		}		return image;	}	    /**	 * Clear cached images in specified section	 * @param section the section do clear	 */	public static void clearImages(String section) {		for (Iterator I = m_ClassImageMap.keySet().iterator(); I.hasNext();) {			String key = (String) I.next();			if (!key.startsWith(section + '|'))				continue;			Image image = m_ClassImageMap.get(key);			image.flush();			I.remove();		}	}	    /**     * Returns an icon stored in the file at the specified path relative to the specified class     * @param clazz Class The class relative to which to find the icon     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(Class clazz, String path) {		return getIcon(getImage(clazz, path));	}	    /**     * Returns an icon stored in the file at the specified path     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(String path) {		return getIcon("default", path); //$NON-NLS-1$	}	    /**     * Returns an icon stored in the file at the specified path     * @param section String The storage section in the cache     * @param path String The path to the icon file     * @return Icon The icon stored in the file at the specified path     */	public static ImageIcon getIcon(String section, String path) {		return getIcon(getImage(section, path));	}    /**     * Returns an icon based on the specified image     * @param image Image The original image     * @return Icon The icon based on the image     */	public static ImageIcon getIcon(Image image) {		if (image == null)			return null;		return new ImageIcon(image);	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清影院| 91久久精品一区二区三区| 精品国产髙清在线看国产毛片| 香蕉加勒比综合久久| 日韩视频免费观看高清完整版在线观看| 人人爽香蕉精品| 日韩一区二区在线看片| 国内精品伊人久久久久影院对白| 国产日产欧产精品推荐色| av成人免费在线| 午夜欧美大尺度福利影院在线看| 欧美成人一区二区三区| 国产精品一区二区男女羞羞无遮挡| 中文字幕av在线一区二区三区| 91在线你懂得| 首页国产丝袜综合| 国产网站一区二区三区| 在线观看日韩一区| 蜜桃av一区二区在线观看| 国产无遮挡一区二区三区毛片日本| 91丝袜国产在线播放| 免费美女久久99| 国产精品午夜春色av| 欧美色网站导航| 国产在线播放一区二区三区| 亚洲欧美日韩国产一区二区三区| 91精品国产美女浴室洗澡无遮挡| 极品瑜伽女神91| 亚洲精品自拍动漫在线| 日韩一区二区在线看片| 91丝袜美腿高跟国产极品老师 | 自拍视频在线观看一区二区| 精品视频一区二区不卡| 国产99精品国产| 亚洲成av人片观看| 国产精品每日更新| 日韩欧美黄色影院| 欧美在线观看视频一区二区| 国产伦精品一区二区三区在线观看| 亚洲精品乱码久久久久久日本蜜臀 | 亚洲成人免费影院| 中文字幕第一区综合| 日韩一卡二卡三卡四卡| 91精品办公室少妇高潮对白| 激情综合网激情| 亚洲成av人**亚洲成av**| 国产精品萝li| 久久这里只有精品视频网| 欧美性猛片xxxx免费看久爱| 成人黄色大片在线观看| 久久国产精品无码网站| 午夜精品久久久久久久99水蜜桃| 国产精品美女久久久久aⅴ| 精品成人在线观看| 在线综合视频播放| 欧美日韩专区在线| 91激情五月电影| 成人高清视频免费观看| 国产伦理精品不卡| 久久精品久久综合| 石原莉奈在线亚洲二区| 亚洲猫色日本管| 中文字幕日韩一区| 国产精品欧美经典| 日本一区二区免费在线| 久久精品一区四区| 久久久天堂av| 久久精品这里都是精品| wwwwxxxxx欧美| 精品国产免费久久| 日韩欧美国产综合在线一区二区三区| 欧美高清www午色夜在线视频| 欧美亚洲丝袜传媒另类| 欧美中文字幕亚洲一区二区va在线| 91亚洲精品久久久蜜桃网站| 99久久综合99久久综合网站| aa级大片欧美| 色综合久久中文字幕综合网| 不卡的电影网站| 91麻豆视频网站| 91福利精品第一导航| 欧美三级资源在线| 欧美精品日韩精品| 日韩欧美在线网站| 久久综合九色综合欧美就去吻| 精品久久久久久久久久久久久久久| 欧美大片免费久久精品三p| 日韩午夜在线观看视频| 精品成人一区二区| 亚洲国产高清不卡| 亚洲老司机在线| 日韩高清不卡一区二区三区| 欧美a级一区二区| 久久精品国产免费| 国产成人亚洲精品狼色在线| 北条麻妃一区二区三区| 欧美中文字幕一区| 日韩免费看的电影| 中文乱码免费一区二区| 夜夜精品浪潮av一区二区三区| 亚洲成人自拍网| 久久精品国产色蜜蜜麻豆| 国产91精品在线观看| 色综合久久综合网| 日韩欧美国产麻豆| 亚洲欧洲另类国产综合| 午夜不卡av在线| 国产精品羞羞答答xxdd| 色婷婷综合激情| 日韩视频一区二区三区在线播放| 日本一二三不卡| 天天综合色天天| 成人久久久精品乱码一区二区三区 | 亚洲欧美日韩中文播放 | 久久久久久久久岛国免费| 中文字幕日韩av资源站| 免费成人你懂的| 99久久综合精品| 欧美大肚乱孕交hd孕妇| 中文字幕亚洲精品在线观看| 另类中文字幕网| 91黄色小视频| 欧美韩国日本一区| 日韩一区精品字幕| thepron国产精品| 欧美zozo另类异族| 午夜精品福利在线| www.色精品| 欧美成人国产一区二区| 伊人色综合久久天天| 国产另类ts人妖一区二区| 欧美日韩二区三区| 亚洲啪啪综合av一区二区三区| 精品一区免费av| 欧美日韩精品一区二区三区四区 | 久久精品av麻豆的观看方式| 日本韩国精品在线| 国产喷白浆一区二区三区| 免费观看成人av| 在线免费观看不卡av| 国产亚洲一区二区三区四区 | 成人av电影免费在线播放| 日韩欧美一区二区不卡| 亚洲国产精品一区二区久久| 成人精品视频一区| 久久亚洲综合色一区二区三区| 丝袜亚洲另类欧美综合| 91九色02白丝porn| 亚洲欧洲99久久| 成人免费av在线| 欧美激情艳妇裸体舞| 国内精品久久久久影院色| 欧美一区二区女人| 亚洲国产wwwccc36天堂| 在线国产电影不卡| 亚洲蜜桃精久久久久久久| 91理论电影在线观看| 中文字幕人成不卡一区| www.日韩大片| 国产精品电影院| av综合在线播放| 中文字幕中文字幕在线一区 | 欧美精品久久久久久久久老牛影院| 樱桃国产成人精品视频| 91免费视频网| 亚洲精品v日韩精品| 91网站在线观看视频| 亚洲精品国产成人久久av盗摄| 北岛玲一区二区三区四区| 亚洲欧美一区二区三区孕妇| 一本大道久久a久久综合婷婷| 亚洲欧美一区二区三区极速播放| 一本久久a久久精品亚洲| 一区二区久久久| 欧美日韩黄色一区二区| 男女男精品视频| 精品国产髙清在线看国产毛片| 国产麻豆成人精品| 一区精品在线播放| 日本道色综合久久| 午夜欧美2019年伦理| 精品av综合导航| 成人免费看黄yyy456| 亚洲视频一二三| 欧美日韩免费观看一区三区| 日本成人中文字幕在线视频| 久久免费看少妇高潮| 东方aⅴ免费观看久久av| 亚洲三级小视频| 欧美日韩精品电影| 国产一区二区三区蝌蚪| 亚洲欧洲性图库| 欧美日韩亚洲国产综合| 精品制服美女丁香| 国产精品国产三级国产| 欧美日韩国产色站一区二区三区| 久久66热re国产| 中文字幕亚洲欧美在线不卡| 在线成人av网站| 国产麻豆视频精品|