|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectcom.swtdesigner.SwingResourceManager
public class SwingResourceManager
Utility class for managing resources such as colors, fonts, images, etc. This class may be freely distributed as part of any application or plugin.
Copyright (c) 2003 - 2004, Instantiations, Inc.
All Rights Reserved
构造函数摘要 | |
---|---|
SwingResourceManager()
|
方法摘要 | |
---|---|
static void |
clearImages(java.lang.String section)
Clear cached images in specified section |
static javax.swing.ImageIcon |
getIcon(java.lang.Class<?> clazz,
java.lang.String path)
Returns an icon stored in the file at the specified path relative to the specified class |
static javax.swing.ImageIcon |
getIcon(java.awt.Image image)
Returns an icon based on the specified image |
static javax.swing.ImageIcon |
getIcon(java.lang.String path)
Returns an icon stored in the file at the specified path |
static javax.swing.ImageIcon |
getIcon(java.lang.String section,
java.lang.String path)
Returns an icon stored in the file at the specified path |
static java.awt.Image |
getImage(java.lang.Class<?> clazz,
java.lang.String path)
Returns an image stored in the file at the specified path relative to the specified class |
static java.awt.Image |
getImage(java.lang.String path)
Returns an image stored in the file at the specified path |
static java.awt.Image |
getImage(java.lang.String section,
java.lang.String path)
Returns an image stored in the file at the specified path |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造函数详细信息 |
---|
public SwingResourceManager()
方法详细信息 |
---|
public static java.awt.Image getImage(java.lang.Class<?> clazz, java.lang.String path)
clazz
- Class The class relative to which to find the imagepath
- String The path to the image file
public static java.awt.Image getImage(java.lang.String path)
path
- String The path to the image file
public static java.awt.Image getImage(java.lang.String section, java.lang.String path)
section
- String The storage section in the cachepath
- String The path to the image file
public static void clearImages(java.lang.String section)
section
- the section do clearpublic static javax.swing.ImageIcon getIcon(java.lang.Class<?> clazz, java.lang.String path)
clazz
- Class The class relative to which to find the iconpath
- String The path to the icon file
public static javax.swing.ImageIcon getIcon(java.lang.String path)
path
- String The path to the icon file
public static javax.swing.ImageIcon getIcon(java.lang.String section, java.lang.String path)
section
- String The storage section in the cachepath
- String The path to the icon file
public static javax.swing.ImageIcon getIcon(java.awt.Image image)
image
- Image The original image
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |