public class SkinManager
extends java.lang.Object
Constructor | Description |
---|---|
SkinManager() |
Modifier and Type | Method | Description |
---|---|---|
static void |
applySkin(Skin skin) |
Sets the global skin that is
applied to new and existing panels.
|
static javafx.embed.swing.JFXPanel |
createPanel() |
Creates a panel that makes use of the global stylesheet.
|
static java.lang.String |
getBaseStylesheetPath() |
|
static java.lang.String |
getFrameTitleBarStylesheetPath() |
|
static java.lang.String |
getSettingsScreenStylesheetPath() |
|
static java.lang.String |
getSettingsTitleBarStylesheetPath() |
|
static void |
runAndWait(javafx.embed.swing.JFXPanel panel,
java.lang.Runnable runnable) |
Runs code on the JavaFX Application Thread,
and then updates the panel's scene so that
it gets resized in the case that components
have been added or removed from the panel.
|
public static void applySkin(Skin skin)
skin
- the skin to applypublic static javafx.embed.swing.JFXPanel createPanel()
applySkin(Skin)
must have been called before calling this method.
public static void runAndWait(javafx.embed.swing.JFXPanel panel, java.lang.Runnable runnable)
panel
- the panel that the Runnable operates on.
This parameter may be null.runnable
- the Runnable whose run method will be
executed on the JavaFX Application Threadpublic static java.lang.String getBaseStylesheetPath()
public static java.lang.String getSettingsScreenStylesheetPath()
public static java.lang.String getFrameTitleBarStylesheetPath()
public static java.lang.String getSettingsTitleBarStylesheetPath()