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 Details

    • SkinUtils

      public SkinUtils()
  • Method Details

    • 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.