public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
bindNodesTransparentBackground(javafx.scene.Node... nodes)
Set transparent background color on nodes.
|
static void |
bindNodesTransparentFocus(javafx.scene.Node... nodes)
Set transparent focus color on nodes.
|
static void |
bindNodeTransparentBackground(javafx.scene.Node node)
Set transparent background color on node.
|
static void |
bindNodeTransparentFocus(javafx.scene.Node node)
Set transparent focus color on node.
|
static javafx.scene.image.ImageView |
getImageView(java.lang.Object context,
java.lang.String path,
int width,
int height)
Get an image from disk as ImageView object.
|
static javafx.scene.paint.Color |
getRandomBrightColor()
Get a random bright color.
|
static javafx.scene.paint.Color |
getRandomColor()
Get a random color.
|
static javafx.scene.image.ImageView |
imageFromUri(java.lang.String source,
java.lang.Object me)
Get ImageView from souce path.
|
static boolean |
verifyExistingLocation(java.lang.String source,
java.lang.Object me)
Verify whether a location is present (exists) or not.
|
public static javafx.scene.image.ImageView getImageView(java.lang.Object context, java.lang.String path, int width, int height)
context
- Application context (this).path
- Path to image.width
- Desired ImageView width.height
- Desired ImageView height.public static void bindNodeTransparentBackground(javafx.scene.Node node)
node
- To apply transparent background to.public static void bindNodesTransparentBackground(javafx.scene.Node... nodes)
nodes
- To apply transparent background to.public static void bindNodeTransparentFocus(javafx.scene.Node node)
node
- To apply transparent focus to.public static void bindNodesTransparentFocus(javafx.scene.Node... nodes)
nodes
- To apply transparent focus to.public static javafx.scene.image.ImageView imageFromUri(java.lang.String source, java.lang.Object me)
source
- Path to image.me
- Application context.public static boolean verifyExistingLocation(java.lang.String source, java.lang.Object me)
source
- Path to location.me
- Application context.public static javafx.scene.paint.Color getRandomColor()
public static javafx.scene.paint.Color getRandomBrightColor()