Package com.l2fprod.gui.plaf.skin
Class SkinUtils
- java.lang.Object
-
- com.l2fprod.gui.plaf.skin.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 Methodstatic java.awt.Font
getFont(java.lang.String name, int type, int size)
Gets the Font attribute of the SkinUtils classstatic java.awt.Image
loadImage(java.lang.String filename)
Description of the Methodstatic java.awt.Image
loadImage(java.net.URL url)
Description of the Methodstatic void
setFont(java.awt.Font f)
Sets the Font attribute of the SkinUtils classstatic java.awt.Insets
stringToInsets(java.lang.String border)
Convert strings like 12, 12, 54, 45 to an insets where values are LEFT, RIGHT, TOP, BOTTOMstatic java.net.URL
toURL(java.io.File f)
Description of the Method
-
-
-
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 Parametertype
- Description of Parametersize
- 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
-
-