public abstract class IconTheme extends java.lang.Object implements java.lang.Comparable<IconTheme>
Constructor and Description |
---|
IconTheme(java.io.File iconDir)
Create the IconTheme
The Directory must contain a index.theme-File.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IconTheme o) |
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
|
public IconTheme(java.io.File iconDir)
iconDir
- Directory for this Themepublic 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 loadedpublic 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 loadprotected abstract boolean entryExists(java.lang.String entry)
entry
- check for this Entryprotected abstract javax.swing.ImageIcon getImageFromTheme(java.lang.String image)
image
- get this ImageTV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)