|
TV-Browser 3.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttvbrowser.core.icontheme.IconLoader
public class IconLoader
The IconLoader manages the IconThemes and loads an Icon. If the Icon was not found the the current Icon-Theme it tries to load the Icon in the Default-IconTheme. IconThemes are Directories that are based on the Icon-Theme Specifications http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html The Icon-Names are based on the Freedesktop Icon Naming Spec: http://cvs.freedesktop.org/[*]checkout[*]/icon-theme/default-icon-theme/spec/icon-naming-spec.xml (please remove the [ ])
Field Summary | |
---|---|
static java.lang.String |
DOWNLOAD_SPEC_URL
The url of the download specs. |
static java.io.File |
USER_ICON_DIR
The icon dir of the current user. |
Method Summary | |
---|---|
IconTheme[] |
getAvailableThemes()
Return all available Themes |
IconTheme |
getDefaultTheme()
|
javax.swing.ImageIcon |
getIconFromTheme(Plugin plugin,
java.lang.String category,
java.lang.String icon,
int size)
Load a specific Icon |
javax.swing.ImageIcon |
getIconFromTheme(Plugin plugin,
ThemeIcon icon)
Load a specific Icon |
javax.swing.ImageIcon |
getIconFromTheme(java.lang.String category,
java.lang.String icon)
Load a specific Icon in default size (16 pixels) |
javax.swing.ImageIcon |
getIconFromTheme(java.lang.String category,
java.lang.String icon,
int size)
Load a specific Icon |
IconTheme |
getIconTheme(java.io.File icon)
Creates the IconTheme |
java.io.File |
getIconThemeFile(java.lang.String theme)
Trys to find the Icon Theme File. |
static IconLoader |
getInstance()
Get an Instance of the IconLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.io.File USER_ICON_DIR
public static final java.lang.String DOWNLOAD_SPEC_URL
Method Detail |
---|
public java.io.File getIconThemeFile(java.lang.String theme)
theme
- name of the theme file
public IconTheme[] getAvailableThemes()
public IconTheme getIconTheme(java.io.File icon)
icon
- Theme-Location
public static IconLoader getInstance()
public javax.swing.ImageIcon getIconFromTheme(Plugin plugin, java.lang.String category, java.lang.String icon, int size)
plugin
- Plugin that wants to use the Iconcategory
- Category of the Iconicon
- Name of the Icon without File-Extensionsize
- Size in Pixel
public javax.swing.ImageIcon getIconFromTheme(java.lang.String category, java.lang.String icon, int size)
category
- Category of the Iconicon
- Name of the Icon without File-Extensionsize
- Size in Pixel
public javax.swing.ImageIcon getIconFromTheme(java.lang.String category, java.lang.String icon)
category
- Category of the Iconicon
- Name of the Icon without File-Extension
public javax.swing.ImageIcon getIconFromTheme(Plugin plugin, ThemeIcon icon)
plugin
- Plugin that wants to use the Iconicon
- Icon that should be loaded
public IconTheme getDefaultTheme()
|
TV-Browser 3.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |