Class SkinUtils

java.lang.Object
com.l2fprod.gui.plaf.skin.SkinUtils

public final class SkinUtils extends Object
Version:
$Revision: 1.6 $, $Date: 2004/05/22 15:12:33 $
Author:
$Author: l2fprod $
  • Field Details

    • DEBUG

      public static final boolean DEBUG
      Description of the Field
  • Constructor Details

    • SkinUtils

      public SkinUtils()
  • Method Details

    • setFont

      public static void setFont(Font f)
      Sets the Font attribute of the SkinUtils class
      Parameters:
      f - The new Font value
    • getFont

      public static Font getFont(String name, int type, int size)
      Gets the Font attribute of the SkinUtils class
      Parameters:
      name - Description of Parameter
      type - Description of Parameter
      size - Description of Parameter
      Returns:
      The Font value
    • loadImage

      public static Image loadImage(String filename) throws Exception
      Description of the Method
      Parameters:
      filename - Description of Parameter
      Returns:
      Description of the Returned Value
      Throws:
      Exception - Description of Exception
    • loadImage

      public static Image loadImage(URL url) throws Exception
      Description of the Method
      Parameters:
      url - Description of Parameter
      Returns:
      Description of the Returned Value
      Throws:
      Exception - Description of Exception
    • toURL

      public static URL toURL(File f) throws MalformedURLException
      Description of the Method
      Parameters:
      f - Description of Parameter
      Returns:
      Description of the Returned Value
      Throws:
      MalformedURLException - Description of Exception
    • decodeColor

      public static String decodeColor(String color)
      Description of the Method
      Parameters:
      color - Description of Parameter
      Returns:
      Description of the Returned Value
    • stringToInsets

      public static Insets stringToInsets(String border)
      Convert strings like 12, 12, 54, 45 to an insets where values are LEFT, RIGHT, TOP, BOTTOM