java.lang.Object
com.iamsoft.util.ui.javafx.LabelUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
computeMinHeight
(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) static double
computeMinWidth
(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) static double
computePrefHeight
(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) static double
computePrefWidth
(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) static double
computePrefWidth
(javafx.scene.control.Label pLabel) static double
computeTextWidth
(String pText) truncatedText
(javafx.scene.control.Labeled pLabel, javafx.beans.value.ObservableValue<String> pText, BiFunction<String, Double, String> pTruncateFunction) Returns a pair of observable value, which provides the truncated text and a runnable, which can be used to dispose the created bindings.truncatedText
(javafx.scene.control.Labeled pLabel, javafx.beans.value.ObservableValue<String> pText, javafx.beans.value.ObservableValue<BiFunction<String, Double, String>> pTruncateFunctionProperty) Returns a pair of observable value, which provides the truncated text and a runnable, which can be used to dispose the created bindings.
-
Method Details
-
computeMinWidth
public static double computeMinWidth(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) -
computePrefWidth
public static double computePrefWidth(javafx.scene.control.Label pLabel) -
computePrefWidth
public static double computePrefWidth(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) -
computeMinHeight
public static double computeMinHeight(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) -
computePrefHeight
public static double computePrefHeight(javafx.scene.control.Control pControl, Supplier<javafx.scene.control.Skin<?>> pSkinFactory) -
computeTextWidth
-
textWidthCalculator
-
truncatedText
public static javafx.util.Pair<javafx.beans.value.ObservableValue<String>,Runnable> truncatedText(javafx.scene.control.Labeled pLabel, javafx.beans.value.ObservableValue<String> pText, BiFunction<String, Double, String> pTruncateFunction) Returns a pair of observable value, which provides the truncated text and a runnable, which can be used to dispose the created bindings. -
truncatedText
public static javafx.util.Pair<javafx.beans.value.ObservableValue<String>,Runnable> truncatedText(javafx.scene.control.Labeled pLabel, javafx.beans.value.ObservableValue<String> pText, javafx.beans.value.ObservableValue<BiFunction<String, Double, String>> pTruncateFunctionProperty) Returns a pair of observable value, which provides the truncated text and a runnable, which can be used to dispose the created bindings.
-