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()
IconThemeManager
getDefault
in interface IconThemeManager
public int getCount()
getCount
in interface IconThemeManager
@Deprecated public void setCurrent(IconTheme iconTheme)
setCurrent
in interface IconThemeManager
public void setActive(IconTheme iconTheme)
IconThemeManager
setActive
in interface IconThemeManager
@Deprecated public IconTheme getCurrent()
getCurrent
in interface IconThemeManager
public IconTheme getActive()
IconThemeManager
getActive
in interface IconThemeManager
public IconTheme get(java.lang.String themeID)
IconThemeManager
get
in interface IconThemeManager
public IconTheme get(int index)
get
in interface IconThemeManager
public java.util.Iterator<IconTheme> iterator()
iterator
in interface IconThemeManager
public boolean contains(IconTheme theme)
contains
in interface IconThemeManager
public boolean add(IconTheme theme)
add
in interface IconThemeManager
public boolean remove(IconTheme theme)
remove
in interface IconThemeManager
public void clear()
clear
in interface IconThemeManager
public FolderSet getRepository()
getRepository
in interface IconThemeManager
public void update(Observable observable, java.lang.Object notification)
Observer
Observable
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 Observer
s 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 IconThemeManager
public void setScaleFactor(double scaleFactor)
setScaleFactor
in interface IconThemeManager