public class PropertiesResources extends Object
Constructor and Description |
---|
PropertiesResources()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the SWT resources.
|
org.eclipse.swt.graphics.Color |
getColor(String key)
Gets the color associated with the given key.
|
org.eclipse.swt.graphics.Font |
getFont(String key)
Gets the font associated with the given key.
|
void |
put(String key,
org.eclipse.swt.graphics.Color color)
Puts the given color.
|
void |
put(String key,
org.eclipse.swt.graphics.Font font)
Puts the given font.
|
void |
removeColor(String key)
Removes the color associated with the given key.
|
void |
removeFont(String key)
Removes the font associated with the given key.
|
public org.eclipse.swt.graphics.Font getFont(String key)
key
- the key associated with the font to getpublic org.eclipse.swt.graphics.Color getColor(String key)
key
- the key associated with the color to getpublic void put(String key, org.eclipse.swt.graphics.Font font)
When the resource won't be used, the resource should be disposed and removed.
key
- the key for given fontfont
- the font to be storedpublic void put(String key, org.eclipse.swt.graphics.Color color)
key
- the key for given colorcolor
- the color to be storedpublic void removeFont(String key)
key
- the key associated with the font to be removedpublic void removeColor(String key)
key
- the key associated with the color to be removedpublic void dispose()
Copyright © 2016. All Rights Reserved.