Class GtkSkin
java.lang.Object
com.l2fprod.gui.plaf.skin.impl.AbstractSkin
com.l2fprod.gui.plaf.skin.impl.gtk.GtkSkin
- All Implemented Interfaces:
Skin
GTK (The Gimp Toolkit) Skin Support.
GtkSkin can be used in conjunction with a gtkrc file.
You can find skins at: gtk.themes.org
Simply extract the skin file in a directory and use:
to enable skins in your application !
Created on 28/01/2000 by Frederic Lavigne, fred@L2FProd.com
GtkSkin can be used in conjunction with a gtkrc file.
You can find skins at:
Simply extract the skin file in a directory and use:
SkinLookAndFeel.setSkin(new GtkSkin("c:\downloads\myskin\gtk\gtkrc"));
UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
to enable skins in your application !
Created on 28/01/2000 by Frederic Lavigne, fred@L2FProd.com
- Version:
- $Revision: 1.2 $, $Date: 2003/12/06 21:50:13 $
- Author:
- $Author: l2fprod $
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the Button attribute of the GtkSkin objectString[]
Gets the Colors attribute of the GtkSkin objectstatic String
Get the user's current GTK skin location.
This could be used on a Linux platform.getFrame()
Gets the Frame attribute of the GtkSkin objectGets the Personality attribute of the GtkSkin objectGets the Progress attribute of the GtkSkin objectGets the Scrollbar attribute of the GtkSkin objectGets the Slider attribute of the GtkSkin objectGets the SplitPane attribute of the GtkSkin objectgetTab()
Gets the Tab attribute of the GtkSkin objectvoid
initComponentDefaults
(UIDefaults table) Methods inherited from class com.l2fprod.gui.plaf.skin.impl.AbstractSkin
getResource, getSeparator, unload
-
Constructor Details
-
GtkSkin
Construct a new GtkSkin using the given filename- Parameters:
filename
- path to a gtk skin (gtkrc) file- Throws:
Exception
- Description of Exception
-
GtkSkin
Construct a new GtkSkin using the given url- Parameters:
url
- path to a gtk skin (gtkrc) file- Throws:
Exception
- Description of Exception
-
GtkSkin
Constructor for the GtkSkin object- Parameters:
url
- Description of Parameterinput
- Description of Parameter- Throws:
Exception
- Description of Exception
-
GtkSkin
Constructor for the GtkSkin object- Parameters:
parser
- Description of Parameter- Throws:
Exception
- Description of Exception
-
-
Method Details
-
getPersonality
Gets the Personality attribute of the GtkSkin object- Specified by:
getPersonality
in interfaceSkin
- Overrides:
getPersonality
in classAbstractSkin
- Returns:
- The Personality value
-
getButton
Gets the Button attribute of the GtkSkin object- Specified by:
getButton
in interfaceSkin
- Overrides:
getButton
in classAbstractSkin
- Returns:
- The Button value
-
getFrame
Gets the Frame attribute of the GtkSkin object- Specified by:
getFrame
in interfaceSkin
- Overrides:
getFrame
in classAbstractSkin
- Returns:
- The Frame value
-
getTab
Gets the Tab attribute of the GtkSkin object- Specified by:
getTab
in interfaceSkin
- Overrides:
getTab
in classAbstractSkin
- Returns:
- The Tab value
-
getProgress
Gets the Progress attribute of the GtkSkin object- Specified by:
getProgress
in interfaceSkin
- Overrides:
getProgress
in classAbstractSkin
- Returns:
- The Progress value
-
getColors
Gets the Colors attribute of the GtkSkin object- Specified by:
getColors
in interfaceSkin
- Overrides:
getColors
in classAbstractSkin
- Returns:
- The Colors value
-
getScrollbar
Gets the Scrollbar attribute of the GtkSkin object- Specified by:
getScrollbar
in interfaceSkin
- Overrides:
getScrollbar
in classAbstractSkin
- Returns:
- The Scrollbar value
-
getSplitPane
Gets the SplitPane attribute of the GtkSkin object- Specified by:
getSplitPane
in interfaceSkin
- Overrides:
getSplitPane
in classAbstractSkin
- Returns:
- The SplitPane value
-
getSlider
Gets the Slider attribute of the GtkSkin object- Specified by:
getSlider
in interfaceSkin
- Overrides:
getSlider
in classAbstractSkin
- Returns:
- The Slider value
-
initComponentDefaults
- Specified by:
initComponentDefaults
in interfaceSkin
- Overrides:
initComponentDefaults
in classAbstractSkin
-
getDefaultSkinLocation
Get the user's current GTK skin location.
This could be used on a Linux platform. It looks for the user theme in the ~/.gtkrc user file.- Returns:
- the skin location or null if the user's current skin can't be found
- Throws:
GtkSkinNotFoundException
- Description of Exception
-