com.l2fprod.gui.plaf.skin.impl.kde
Class KdeSkin

java.lang.Object
  extended by com.l2fprod.gui.plaf.skin.impl.AbstractSkin
      extended by 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

    Field Summary
     
    Fields inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
    button, frame, personality, progress, resources, scrollbar, separator, slider, splitpane, tab
     
    Constructor Summary
    KdeSkin(java.lang.String filename)
              Construct a new KDE skin with the given filename
    KdeSkin(java.net.URL skinURL)
              Constructor for the KdeSkin object
    KdeSkin(java.net.URL skinURL, java.io.InputStream input)
              Constructor for the KdeSkin object
     
    Method Summary
     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
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    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 Parameter
    input - 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 interface Skin
    Overrides:
    getColors in class AbstractSkin
    Returns:
    The Colors value