public abstract class IconTheme extends Object
Constructor and Description |
---|
IconTheme(File iconDir)
Create the IconTheme
The Directory must contain a index.theme-File.
|
Modifier and Type | Method and Description |
---|---|
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
|
public IconTheme(File iconDir)
iconDir
- Directory for this Themepublic boolean loadTheme()
public String getName()
public String getComment()
public File getBase()
public ImageIcon getIcon(ThemeIcon icon)
icon
- Icon that should be loadedprotected abstract InputStream getInputStream(String entry)
entry
- File/Entry to loadprotected abstract boolean entryExists(String entry)
entry
- check for this EntryTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)