Helper methods for creating JavaFX GUI components.
Type Params | Return Type | Name and description |
---|---|---|
|
static Image |
changeFxIconColor(Image image, int oldColor, int newColor) |
|
static Image |
createFxIcon(java.lang.String path) |
|
static Image |
createFxIcon(java.lang.String path, boolean backgroundLoading) |
|
static java.awt.image.BufferedImage |
createInvertedMonochromeFxIcon(java.awt.image.BufferedImage icon, int baseColor) Inverts "monochrome" (of one base color) JavaFX image's colors, changing baseColor to white and other colors to their inversion |
|
static JFXPanel |
createStyledContainer() |
|
static void |
ensureRunInFXThread(java.lang.Runnable runnable) |
|
static void |
setDefaultLoaderClass(java.lang.Class<?> defaultLoaderClass) |
|
static void |
setScrollBarsStyle(Scene newScene) |
|
static void |
setScrollBarsStyle(DialogPane dialogPane) |
|
static java.lang.String |
truncateToLayoutBoundsWidth(java.lang.String s, double maxWidth) |
|
static java.lang.String |
truncateToLayoutBoundsWidth(java.lang.String s, double maxWidth, Font font) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Inverts "monochrome" (of one base color) JavaFX image's colors, changing baseColor to white and other colors to their inversion
icon
- original imagebaseColor
- color to be changed to white