|
TV-Browser 2.7.5 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 [ ])
| Method Summary | |
|---|---|
IconTheme[] |
getAvailableThemes()
Return all available Themes |
IconTheme |
getDefaultTheme()
|
ImageIcon |
getIconFromTheme(Plugin plugin,
String category,
String icon,
int size)
Load a specific Icon |
ImageIcon |
getIconFromTheme(Plugin plugin,
ThemeIcon icon)
Load a specific Icon |
ImageIcon |
getIconFromTheme(String category,
String icon,
int size)
Load a specific Icon |
IconTheme |
getIconTheme(File icon)
Creates the IconTheme |
File |
getIconThemeFile(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 |
| Method Detail |
|---|
public File getIconThemeFile(String theme)
theme - name of the theme file
public IconTheme[] getAvailableThemes()
public IconTheme getIconTheme(File icon)
icon - Theme-Location
public static IconLoader getInstance()
public ImageIcon getIconFromTheme(Plugin plugin,
String category,
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 ImageIcon getIconFromTheme(String category,
String icon,
int size)
category - Category of the Iconicon - Name of the Icon without File-Extensionsize - Size in Pixel
public ImageIcon getIconFromTheme(Plugin plugin,
ThemeIcon icon)
plugin - Plugin that wants to use the Iconicon - Icon that should be loaded
public IconTheme getDefaultTheme()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||