Package org.jets3t.gui.skins
Class SkinUtils
- java.lang.Object
-
- org.jets3t.gui.skins.SkinUtils
-
public class SkinUtils extends Object
Utility methods for loading skin resources from settings in skin properties.- Author:
- James Murty
-
-
Constructor Summary
Constructors Constructor Description SkinUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
loadColor(Properties skinProperties, String colorPropertyName)
Loads a skin property setting for a color.ImageIcon
loadIcon(Properties skinProperties, String iconPathPropertyName)
Loads a skin property setting for an icon image.
-
-
-
Method Detail
-
loadColor
public Color loadColor(Properties skinProperties, String colorPropertyName)
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
public ImageIcon loadIcon(Properties skinProperties, String iconPathPropertyName)
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.
-
-