|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tvbrowser.core.icontheme.IconTheme
public abstract class IconTheme
This class implements the IconTheme-Loading Most of the Code is based on the FreeDesktop Specs http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
Constructor Summary | |
---|---|
IconTheme(java.io.File iconDir)
Create the IconTheme The Directory must contain a index.theme-File. |
Method Summary | |
---|---|
protected abstract boolean |
entryExists(java.lang.String entry)
Tests if an Entry exists in the Icon-Theme |
boolean |
equals(java.lang.Object obj)
|
java.io.File |
getBase()
Get the Icon-Base. |
java.lang.String |
getComment()
Get the Comment of the Theme |
javax.swing.ImageIcon |
getIcon(ThemeIcon icon)
Get an Icon from this Theme. |
protected abstract javax.swing.ImageIcon |
getImageFromTheme(java.lang.String image)
Get an Image from the Icon-Theme |
protected abstract java.io.InputStream |
getInputStream(java.lang.String entry)
Get an InputStream from the Icon-Theme. |
java.lang.String |
getName()
Get the Name of the Theme |
int |
hashCode()
|
boolean |
loadTheme()
Load the Theme-File |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconTheme(java.io.File iconDir)
iconDir
- Directory for this ThemeMethod Detail |
---|
public boolean loadTheme()
public java.lang.String getName()
public java.lang.String getComment()
public java.io.File getBase()
public javax.swing.ImageIcon getIcon(ThemeIcon icon)
icon
- Icon that should be loaded
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected abstract java.io.InputStream getInputStream(java.lang.String entry)
entry
- File/Entry to load
protected abstract boolean entryExists(java.lang.String entry)
entry
- check for this Entry
protected abstract javax.swing.ImageIcon getImageFromTheme(java.lang.String image)
image
- get this Image
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |