Class KdeSkin
- java.lang.Object
-
- com.l2fprod.gui.plaf.skin.impl.AbstractSkin
-
- com.l2fprod.gui.plaf.skin.impl.kde.KdeSkin
-
- All Implemented Interfaces:
Skin
public final class KdeSkin extends AbstractSkin
KDE (The K Desktop Environment) Skin Support.
KdeSkin can be used in conjunction with a kde.themerc file.
You can find skins at:- kde.themes.org
Simply extract the skin file in a directory and use:
SkinLookAndFeel.setSkin(new KdeSkin("c:\downloads\myskin\kde\kde.themerc"));
UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
to enable skins in your application !
- Author:
- fred
-
-
Constructor Summary
Constructors Constructor Description KdeSkin(java.lang.String filename)
Construct a new KDE skin with the given filenameKdeSkin(java.net.URL skinURL)
Constructor for the KdeSkin objectKdeSkin(java.net.URL skinURL, java.io.InputStream input)
Constructor for the KdeSkin object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getColors()
Gets the Colors attribute of the KdeSkin object-
Methods inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
getButton, getFrame, getPersonality, getProgress, getResource, getScrollbar, getSeparator, getSlider, getSplitPane, getTab, initComponentDefaults, unload
-
-
-
-
Constructor Detail
-
KdeSkin
public KdeSkin(java.lang.String filename) throws java.lang.Exception
Construct a new KDE skin with the given filename- Parameters:
filename
- path to a kde (themerc) skin file- Throws:
java.lang.Exception
- Description of Exception
-
KdeSkin
public KdeSkin(java.net.URL skinURL) throws java.lang.Exception
Constructor for the KdeSkin object- Parameters:
skinURL
- Description of Parameter- Throws:
java.lang.Exception
- Description of Exception
-
KdeSkin
public KdeSkin(java.net.URL skinURL, java.io.InputStream input) throws java.lang.Exception
Constructor for the KdeSkin object- Parameters:
skinURL
- Description of Parameterinput
- Description of Parameter- Throws:
java.lang.Exception
- Description of Exception
-
-
Method Detail
-
getColors
public java.lang.String[] getColors()
Gets the Colors attribute of the KdeSkin object- Specified by:
getColors
in interfaceSkin
- Overrides:
getColors
in classAbstractSkin
- Returns:
- The Colors value
-
-