public class DefaultIconThemeManager extends java.lang.Object implements IconThemeManager, ComplexObserver
| Constructor and Description |
|---|
DefaultIconThemeManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IconTheme theme) |
void |
clear() |
boolean |
contains(IconTheme theme) |
IconTheme |
get(int index) |
IconTheme |
get(java.lang.String themeID)
Returns the theme that has been registered with the name that receives like
parameter
|
IconTheme |
getActive()
Gets the current theme
|
int |
getCount() |
IconTheme |
getCurrent()
Deprecated.
|
IconTheme |
getDefault()
Gets the default theme
|
static IconThemeManager |
getIconThemeManager() |
FolderSet |
getRepository() |
double |
getScaleFactor() |
java.util.Iterator<IconTheme> |
iterator() |
boolean |
remove(IconTheme theme) |
void |
setActive(IconTheme iconTheme)
Sets the iconTheme like current theme
|
void |
setCurrent(IconTheme iconTheme)
Deprecated.
|
void |
setScaleFactor(double scaleFactor) |
void |
update(Observable observable,
java.lang.Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
public static IconThemeManager getIconThemeManager()
public IconTheme getDefault()
IconThemeManagergetDefault in interface IconThemeManagerpublic int getCount()
getCount in interface IconThemeManager@Deprecated public void setCurrent(IconTheme iconTheme)
setCurrent in interface IconThemeManagerpublic void setActive(IconTheme iconTheme)
IconThemeManagersetActive in interface IconThemeManager@Deprecated public IconTheme getCurrent()
getCurrent in interface IconThemeManagerpublic IconTheme getActive()
IconThemeManagergetActive in interface IconThemeManagerpublic IconTheme get(java.lang.String themeID)
IconThemeManagerget in interface IconThemeManagerpublic IconTheme get(int index)
get in interface IconThemeManagerpublic java.util.Iterator<IconTheme> iterator()
iterator in interface IconThemeManagerpublic boolean contains(IconTheme theme)
contains in interface IconThemeManagerpublic boolean add(IconTheme theme)
add in interface IconThemeManagerpublic boolean remove(IconTheme theme)
remove in interface IconThemeManagerpublic void clear()
clear in interface IconThemeManagerpublic FolderSet getRepository()
getRepository in interface IconThemeManagerpublic void update(Observable observable, java.lang.Object notification)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public double getScaleFactor()
getScaleFactor in interface IconThemeManagerpublic void setScaleFactor(double scaleFactor)
setScaleFactor in interface IconThemeManager