public class IconLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final java.io.File USER_ICON_DIR
public static final java.lang.String DOWNLOAD_SPEC_URL
public java.io.File getIconThemeFile(java.lang.String theme)
theme
- name of the theme filepublic IconTheme[] getAvailableThemes()
public IconTheme getIconTheme(java.io.File icon)
icon
- Theme-Locationpublic 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 Pixelpublic 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 Pixelpublic javax.swing.ImageIcon getIconFromTheme(java.lang.String category, java.lang.String icon)
category
- Category of the Iconicon
- Name of the Icon without File-Extensionpublic javax.swing.ImageIcon getIconFromTheme(Plugin plugin, ThemeIcon icon)
plugin
- Plugin that wants to use the Iconicon
- Icon that should be loadedpublic IconTheme getDefaultTheme()
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)