public final class GtkSkin extends AbstractSkin
SkinLookAndFeel.setSkin(new GtkSkin("c:\downloads\myskin\gtk\gtkrc"));
UIManager.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel");
Constructor and Description |
---|
GtkSkin(GtkParser parser)
Constructor for the GtkSkin object
|
GtkSkin(java.lang.String filename)
Construct a new GtkSkin using the given filename
|
GtkSkin(java.net.URL url)
Construct a new GtkSkin using the given url
|
GtkSkin(java.net.URL url,
java.io.InputStream input)
Constructor for the GtkSkin object
|
Modifier and Type | Method and Description |
---|---|
SkinButton |
getButton()
Gets the Button attribute of the GtkSkin object
|
java.lang.String[] |
getColors()
Gets the Colors attribute of the GtkSkin object
|
static java.lang.String |
getDefaultSkinLocation()
Get the user's current GTK skin location.
This could be used on a Linux platform. |
SkinFrame |
getFrame()
Gets the Frame attribute of the GtkSkin object
|
SkinPersonality |
getPersonality()
Gets the Personality attribute of the GtkSkin object
|
SkinProgress |
getProgress()
Gets the Progress attribute of the GtkSkin object
|
SkinScrollbar |
getScrollbar()
Gets the Scrollbar attribute of the GtkSkin object
|
SkinSlider |
getSlider()
Gets the Slider attribute of the GtkSkin object
|
SkinSplitPane |
getSplitPane()
Gets the SplitPane attribute of the GtkSkin object
|
SkinTab |
getTab()
Gets the Tab attribute of the GtkSkin object
|
void |
initComponentDefaults(javax.swing.UIDefaults table) |
getResource, getSeparator, unload
public GtkSkin(java.lang.String filename) throws java.lang.Exception
filename
- path to a gtk skin (gtkrc) filejava.lang.Exception
- Description of Exceptionpublic GtkSkin(java.net.URL url) throws java.lang.Exception
url
- path to a gtk skin (gtkrc) filejava.lang.Exception
- Description of Exceptionpublic GtkSkin(java.net.URL url, java.io.InputStream input) throws java.lang.Exception
url
- Description of Parameterinput
- Description of Parameterjava.lang.Exception
- Description of Exceptionpublic GtkSkin(GtkParser parser) throws java.lang.Exception
parser
- Description of Parameterjava.lang.Exception
- Description of Exceptionpublic SkinPersonality getPersonality()
getPersonality
in interface Skin
getPersonality
in class AbstractSkin
public SkinButton getButton()
getButton
in interface Skin
getButton
in class AbstractSkin
public SkinFrame getFrame()
getFrame
in interface Skin
getFrame
in class AbstractSkin
public SkinTab getTab()
getTab
in interface Skin
getTab
in class AbstractSkin
public SkinProgress getProgress()
getProgress
in interface Skin
getProgress
in class AbstractSkin
public java.lang.String[] getColors()
getColors
in interface Skin
getColors
in class AbstractSkin
public SkinScrollbar getScrollbar()
getScrollbar
in interface Skin
getScrollbar
in class AbstractSkin
public SkinSplitPane getSplitPane()
getSplitPane
in interface Skin
getSplitPane
in class AbstractSkin
public SkinSlider getSlider()
getSlider
in interface Skin
getSlider
in class AbstractSkin
public void initComponentDefaults(javax.swing.UIDefaults table)
initComponentDefaults
in interface Skin
initComponentDefaults
in class AbstractSkin
public static java.lang.String getDefaultSkinLocation() throws GtkSkinNotFoundException
GtkSkinNotFoundException
- Description of Exception