|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.gui.util.IconHelper
public class IconHelper
This class provides methods to get icons in certain sizes. All icon directories are searched.
Nested Class Summary | |
---|---|
static class |
IconHelper.EmptyIcon
Provides an empty, transparent icon. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ICON_PATH
The default path to search for icons. |
static java.lang.String |
XNAP_ICON
|
Constructor Summary | |
---|---|
IconHelper()
|
Method Summary | |
---|---|
static javax.swing.Icon |
getButtonIcon(java.lang.String filename)
|
static javax.swing.Icon |
getEmptyIcon(int size)
|
static javax.swing.Icon |
getIcon(java.lang.String filename,
int size)
|
static javax.swing.Icon |
getIcon(java.lang.String filename,
int size,
boolean createEmptyIcon)
Returns an icon with size height and width. |
static java.lang.String |
getIconPath()
|
static javax.swing.ImageIcon |
getImage(java.lang.String filename)
Searches iconPath + #ICON_PATH for
filename . |
static javax.swing.ImageIcon |
getImage(java.lang.String path,
int size,
java.lang.String filename)
|
static javax.swing.Icon |
getListIcon(java.lang.String filename)
|
static javax.swing.Icon |
getMenuIcon(java.lang.String filename)
|
static javax.swing.Icon |
getScaledLogo(int height)
|
static javax.swing.Icon |
getStatusBarIcon(java.lang.String filename)
|
static javax.swing.Icon |
getTabTitleIcon(java.lang.String filename)
|
static javax.swing.Icon |
getToolBarIcon(java.lang.String filename)
|
static javax.swing.Icon |
getTreeIcon(java.lang.String filename)
|
static javax.swing.Icon |
getWizardIcon(java.lang.String filename)
|
static void |
setIconPath(java.lang.String iconPath)
Sets the search path iconPath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XNAP_ICON
public static final java.lang.String DEFAULT_ICON_PATH
Constructor Detail |
---|
public IconHelper()
Method Detail |
---|
public static final javax.swing.Icon getIcon(java.lang.String filename, int size, boolean createEmptyIcon)
size
height and width. If no icon
named filename
can be found and
createEmptyIcon
is true, an empty icon is returned.
If the icon does not fit size
it is scaled.
public static final javax.swing.Icon getIcon(java.lang.String filename, int size)
getIcon(String, int, boolean)
public static final javax.swing.ImageIcon getImage(java.lang.String filename)
iconPath
+ #ICON_PATH
for
filename
. If filename is not found #ICON_PATH
is searched as a fallback.
filename
does not exists.public static final javax.swing.ImageIcon getImage(java.lang.String path, int size, java.lang.String filename)
public static final javax.swing.Icon getEmptyIcon(int size)
public static final javax.swing.Icon getListIcon(java.lang.String filename)
public static final javax.swing.Icon getButtonIcon(java.lang.String filename)
public static final javax.swing.Icon getMenuIcon(java.lang.String filename)
public static java.lang.String getIconPath()
public static javax.swing.Icon getScaledLogo(int height)
public static final javax.swing.Icon getStatusBarIcon(java.lang.String filename)
public static final javax.swing.Icon getTabTitleIcon(java.lang.String filename)
public static final javax.swing.Icon getTreeIcon(java.lang.String filename)
public static final javax.swing.Icon getToolBarIcon(java.lang.String filename)
public static final javax.swing.Icon getWizardIcon(java.lang.String filename)
public static void setIconPath(java.lang.String iconPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |