public class IconLoader extends Object
Modifier and Type | Method and Description |
---|---|
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
|
public File getIconThemeFile(String theme)
theme
- name of the theme filepublic IconTheme[] getAvailableThemes()
public IconTheme getIconTheme(File icon)
icon
- Theme-Locationpublic 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 Pixelpublic ImageIcon getIconFromTheme(String category, String icon, int size)
category
- Category of the Iconicon
- Name of the Icon without File-Extensionsize
- Size in Pixelpublic ImageIcon getIconFromTheme(Plugin plugin, ThemeIcon icon)
plugin
- Plugin that wants to use the Iconicon
- Icon that should be loadedpublic IconTheme getDefaultTheme()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)