public class UIToolBox extends Object
| Constructor and Description |
|---|
UIToolBox() |
| Modifier and Type | Method and Description |
|---|---|
static javafx.scene.Node |
createHorizontalSpacer()
produce a gap in a horizontal layout
|
static javafx.scene.Node |
createVerticalSpacer()
produce a gap in a vertical layout
|
static double |
getAreaRatio(double rectangle_w,
double rectangle_h,
double circle_radius)
Calculate the ratio from a radius
|
static javafx.scene.image.Image |
getColorizedImage(javafx.scene.image.Image imageToRecolor,
javafx.scene.paint.Color newColor)
to colorize a image
|
static double |
getGreaterFont(double fontSize,
double w,
double h,
String valueToShow,
double gapPercent,
javafx.scene.text.Font font) |
static double |
getLesserFont(double fontSize,
double w,
double h,
String valueToShow,
double gapPercent,
javafx.scene.text.Font font) |
static javafx.geometry.Bounds |
getMaxTextWidth(javafx.scene.text.Font font,
String textToShow) |
static double |
getPointRatio(double baseValue,
double partValue)
Calculate the ratio
|
static double |
getRadiusFromRatio(double rectangle_w,
double rectangle_h,
double radius_ratio)
revert calculation from ratio to the new radius after resizing
|
static javafx.scene.image.Image |
getScaledImage(javafx.scene.image.Image imageFx,
double w,
double h) |
static String |
getWebColorString(double red,
double green,
double blue,
double alpha)
format the color to a web string.
|
static javafx.geometry.Bounds |
textWidth(double size,
String valueToShow,
javafx.scene.text.Font fontBase) |
public static javafx.scene.Node createHorizontalSpacer()
public static javafx.scene.Node createVerticalSpacer()
public static javafx.geometry.Bounds textWidth(double size,
String valueToShow,
javafx.scene.text.Font fontBase)
public static javafx.geometry.Bounds getMaxTextWidth(javafx.scene.text.Font font,
String textToShow)
public static double getGreaterFont(double fontSize,
double w,
double h,
String valueToShow,
double gapPercent,
javafx.scene.text.Font font)
public static double getLesserFont(double fontSize,
double w,
double h,
String valueToShow,
double gapPercent,
javafx.scene.text.Font font)
public static double getPointRatio(double baseValue,
double partValue)
baseValue - partValue - public static double getAreaRatio(double rectangle_w,
double rectangle_h,
double circle_radius)
rectangle_w - rectangle_h - circle_radius - public static double getRadiusFromRatio(double rectangle_w,
double rectangle_h,
double radius_ratio)
rectangle_w - rectangle_h - radius_ratio - public static javafx.scene.image.Image getScaledImage(javafx.scene.image.Image imageFx,
double w,
double h)
public static javafx.scene.image.Image getColorizedImage(javafx.scene.image.Image imageToRecolor,
javafx.scene.paint.Color newColor)
imageToRecolor - newColor - public static String getWebColorString(double red, double green, double blue, double alpha)
red - green - blue - alpha - Copyright © 2023. All rights reserved.