public interface ITheme
IThemeManager.DEFAULT_THEME
)
that defines the initial values for a collection of fonts and colors. Other
themes may extend and override the default theme to provide new values.
Clients may obtain themes via IThemeManager.getTheme(String)
.
This interface is not intended to be implemented or extended by clients.
IWorkbench.getThemeManager()
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Adds a property listener to the theme.
|
void |
dispose()
Dispose of this theme.
|
boolean |
getBoolean(String key)
Get arbitrary data associated with this theme.
|
ColorRegistry |
getColorRegistry()
Return this themes color registry.
|
FontRegistry |
getFontRegistry()
Return this themes font registry.
|
String |
getId()
Returns the id of this theme.
|
int |
getInt(String key)
Get arbitrary data associated with this theme.
|
String |
getLabel()
Returns the label of this theme.
|
String |
getString(String key)
Get arbitrary data associated with this theme.
|
Set |
keySet()
Get the set of keys associated with this theme.
|
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Removes a property listener from the theme.
|
void addPropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to addvoid dispose()
boolean getBoolean(String key)
key
- the keyfalse
if none exists
or if the value cannot be treated as a boolean.ColorRegistry getColorRegistry()
FontRegistry getFontRegistry()
String getId()
null
.int getInt(String key)
key
- the key0
if none exists or
if the value cannot be treated as an integer.String getLabel()
null
.String getString(String key)
key
- the keynull
if none exists.Set keySet()
void removePropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to remove
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.