Class SkinUtils


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

      Fields 
      Modifier and Type Field Description
      static boolean DEBUG
      Description of the Field
    • Constructor Summary

      Constructors 
      Constructor Description
      SkinUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String decodeColor​(java.lang.String color)
      Description of the Method
      static java.awt.Font getFont​(java.lang.String name, int type, int size)
      Gets the Font attribute of the SkinUtils class
      static java.awt.Image loadImage​(java.lang.String filename)
      Description of the Method
      static java.awt.Image loadImage​(java.net.URL url)
      Description of the Method
      static void setFont​(java.awt.Font f)
      Sets the Font attribute of the SkinUtils class
      static java.awt.Insets stringToInsets​(java.lang.String border)
      Convert strings like 12, 12, 54, 45 to an insets where values are LEFT, RIGHT, TOP, BOTTOM
      static java.net.URL toURL​(java.io.File f)
      Description of the Method
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEBUG

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

      • SkinUtils

        public SkinUtils()
    • Method Detail

      • setFont

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

        public static java.awt.Font getFont​(java.lang.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 java.awt.Image loadImage​(java.lang.String filename)
                                        throws java.lang.Exception
        Description of the Method
        Parameters:
        filename - Description of Parameter
        Returns:
        Description of the Returned Value
        Throws:
        java.lang.Exception - Description of Exception
      • loadImage

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

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

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

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