public class JavaFXUtils
Helper methods for creating JavaFX GUI components.
Type Params | Return Type | Name and description |
---|---|---|
|
public static java.awt.Image |
changeFxIconColor(java.awt.Image image, int oldColor, int newColor) |
|
public static javafx.scene.image.Image |
createFxIcon(java.lang.String path) |
|
public static javafx.scene.image.Image |
createFxIcon(java.lang.String path, boolean backgroundLoading) |
|
public 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 |
|
public static javafx.embed.swing.JFXPanel |
createStyledContainer() |
|
public static void |
ensureRunInFXThread(java.lang.Runnable runnable) |
|
public static void |
setDefaultLoaderClass(java.lang.Class<?> defaultLoaderClass) |
|
public void |
setScene(javafx.scene.Scene newScene) |
|
public static void |
setScrollBarsStyle(javafx.scene.Scene newScene) |
|
public static void |
setScrollBarsStyle(DialogPane dialogPane) |
|
public static java.lang.String |
truncateToLayoutBoundsWidth(java.lang.String s, double maxWidth) |
|
public static java.lang.String |
truncateToLayoutBoundsWidth(java.lang.String s, double maxWidth, java.awt.Font font) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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