|
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.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(File iconDir)
Create the IconTheme The Directory must contain a index.theme-File. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
entryExists(String entry)
Tests if an Entry exists in the Icon-Theme |
boolean |
equals(Object obj)
|
File |
getBase()
Get the Icon-Base. |
String |
getComment()
Get the Comment of the Theme |
ImageIcon |
getIcon(ThemeIcon icon)
Get an Icon from this Theme. |
protected abstract ImageIcon |
getImageFromTheme(String image)
Get an Image from the Icon-Theme |
protected abstract InputStream |
getInputStream(String entry)
Get an InputStream from the Icon-Theme. |
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(File iconDir)
iconDir - Directory for this Theme| Method Detail |
|---|
public boolean loadTheme()
public String getName()
public String getComment()
public File getBase()
public ImageIcon getIcon(ThemeIcon icon)
icon - Icon that should be loaded
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectprotected abstract InputStream getInputStream(String entry)
entry - File/Entry to load
protected abstract boolean entryExists(String entry)
entry - check for this Entry
protected abstract ImageIcon getImageFromTheme(String image)
image - get this Image
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||