|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.LookAndFeel | +--javax.swing.plaf.basic.BasicLookAndFeel | +--com.l2fprod.gui.plaf.skin.SkinLookAndFeel
Skin Look And Feel Main Class.
Use this class to set the current skin or to load skins.
See
L2FProd.com website for the complete description of a theme pack.
Field Summary | |
static java.lang.String |
VERSION
Description of the Field |
Constructor Summary | |
SkinLookAndFeel()
|
Method Summary | |
static void |
checkRequiredVersion(java.lang.String required)
Description of the Method |
static void |
enable()
Set the look and feel to SkinLookAndFeel. |
java.lang.String |
getDescription()
Gets the Description attribute of the SkinLookAndFeel object |
java.lang.String |
getID()
Gets the ID attribute of the SkinLookAndFeel object |
java.lang.String |
getName()
Gets the Name attribute of the SkinLookAndFeel object |
static com.l2fprod.gui.plaf.skin.Skin |
getSkin()
Return the current skin. |
boolean |
isNativeLookAndFeel()
Gets the NativeLookAndFeel attribute of the SkinLookAndFeel object |
boolean |
isSupportedLookAndFeel()
Gets the SupportedLookAndFeel attribute of the SkinLookAndFeel object |
static com.l2fprod.gui.plaf.skin.Skin |
loadDefaultThemePack()
Load the default theme pack. Skin Look And Feel will look for the resource file named skinlf-themepack.xml
in the user classpath (using SkinLookAndFeel.class.getResource("/skinlf-themepack.xml")
). |
static com.l2fprod.gui.plaf.skin.Skin |
loadSkin(java.lang.String filename)
Load a skin from the given filename. SkinLF will use the filename to guess which theme to instanciate |
static com.l2fprod.gui.plaf.skin.Skin |
loadSkin(java.net.URL url)
Load a skin from the given url. SkinLF will use the url filename to guess which theme to instanciate |
static com.l2fprod.gui.plaf.skin.Skin |
loadThemePack(java.lang.String filename)
Load a Theme Pack from the given zip file. |
static com.l2fprod.gui.plaf.skin.Skin |
loadThemePack(java.net.URL url)
Load a Theme Pack from the given zip url. |
static com.l2fprod.gui.plaf.skin.Skin |
loadThemePackDefinition(java.net.URL url)
Load a Theme Pack from the given theme pack definition. |
static void |
setSkin(com.l2fprod.gui.plaf.skin.Skin skin)
Set the skin used by the Skin Look And Feel |
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
getDefaults |
Methods inherited from class javax.swing.LookAndFeel |
initialize,
installBorder,
installColors,
installColorsAndFont,
makeIcon,
makeKeyBindings,
toString,
uninitialize,
uninstallBorder |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
Constructor Detail |
public SkinLookAndFeel()
Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getID()
public boolean isNativeLookAndFeel()
public boolean isSupportedLookAndFeel()
public static void setSkin(com.l2fprod.gui.plaf.skin.Skin skin)
skin
- a skinpublic static com.l2fprod.gui.plaf.skin.Skin getSkin()
public static void enable() throws javax.swing.UnsupportedLookAndFeelException
public static com.l2fprod.gui.plaf.skin.Skin loadSkin(java.lang.String filename) throws java.lang.Exception
filename
- the given filenamepublic static com.l2fprod.gui.plaf.skin.Skin loadSkin(java.net.URL url) throws java.lang.Exception
url
- Description of Parameterpublic static com.l2fprod.gui.plaf.skin.Skin loadDefaultThemePack() throws java.lang.Exception
skinlf-themepack.xml
in the user classpath (using SkinLookAndFeel.class.getResource("/skinlf-themepack.xml")
).public static com.l2fprod.gui.plaf.skin.Skin loadThemePack(java.lang.String filename) throws java.lang.Exception
filename
- the theme pack filenamepublic static com.l2fprod.gui.plaf.skin.Skin loadThemePack(java.net.URL url) throws java.lang.Exception
url
- the theme pack urlZipResourceLoader
public static com.l2fprod.gui.plaf.skin.Skin loadThemePackDefinition(java.net.URL url) throws java.lang.Exception
url
- the theme pack definition urlpublic static void checkRequiredVersion(java.lang.String required) throws java.lang.Exception
required
- Description of Parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |