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 StringGet 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 objectvoidinitComponentDefaults(UIDefaults table) Methods inherited from class AbstractSkin
getResource, getSeparator, unload
-
Constructor Details
-
GtkSkin
-
GtkSkin
-
GtkSkin
Constructor for the GtkSkin object- Parameters:
url- Description of Parameterinput- Description of Parameter- Throws:
Exception- Description of Exception
-
GtkSkin
-
-
Method Details
-
getPersonality
Gets the Personality attribute of the GtkSkin object- Specified by:
getPersonalityin interfaceSkin- Overrides:
getPersonalityin classAbstractSkin- Returns:
- The Personality value
-
getButton
Gets the Button attribute of the GtkSkin object- Specified by:
getButtonin interfaceSkin- Overrides:
getButtonin classAbstractSkin- Returns:
- The Button value
-
getFrame
Gets the Frame attribute of the GtkSkin object- Specified by:
getFramein interfaceSkin- Overrides:
getFramein classAbstractSkin- Returns:
- The Frame value
-
getTab
Gets the Tab attribute of the GtkSkin object- Specified by:
getTabin interfaceSkin- Overrides:
getTabin classAbstractSkin- Returns:
- The Tab value
-
getProgress
Gets the Progress attribute of the GtkSkin object- Specified by:
getProgressin interfaceSkin- Overrides:
getProgressin classAbstractSkin- Returns:
- The Progress value
-
getColors
Gets the Colors attribute of the GtkSkin object- Specified by:
getColorsin interfaceSkin- Overrides:
getColorsin classAbstractSkin- Returns:
- The Colors value
-
getScrollbar
Gets the Scrollbar attribute of the GtkSkin object- Specified by:
getScrollbarin interfaceSkin- Overrides:
getScrollbarin classAbstractSkin- Returns:
- The Scrollbar value
-
getSplitPane
Gets the SplitPane attribute of the GtkSkin object- Specified by:
getSplitPanein interfaceSkin- Overrides:
getSplitPanein classAbstractSkin- Returns:
- The SplitPane value
-
getSlider
Gets the Slider attribute of the GtkSkin object- Specified by:
getSliderin interfaceSkin- Overrides:
getSliderin classAbstractSkin- Returns:
- The Slider value
-
initComponentDefaults
- Specified by:
initComponentDefaultsin interfaceSkin- Overrides:
initComponentDefaultsin 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
-