Package org.jets3t.gui.skins
Class SkinUtils
java.lang.Object
org.jets3t.gui.skins.SkinUtils
Utility methods for loading skin resources from settings in skin properties.
- Author:
- James Murty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadColor
(Properties skinProperties, String colorPropertyName) Loads a skin property setting for a color.loadIcon
(Properties skinProperties, String iconPathPropertyName) Loads a skin property setting for an icon image.
-
Constructor Details
-
SkinUtils
public SkinUtils()
-
-
Method Details
-
loadColor
Loads a skin property setting for a color.- Parameters:
skinProperties
- contains skin property settings.colorPropertyName
- the name of the property expected to contain a color value.- Returns:
- the parsed color value if the given property is available and valid, null otherwise.
-
loadIcon
Loads a skin property setting for an icon image.- Parameters:
skinProperties
- contains skin property settings.iconPathPropertyName
- the name of the property expected to contain the path to an icon image resource.- Returns:
- an icon image resource when the path property is available and it points to a valid image resource, null otherwise.
-