public class TextSizingUtility extends Object
| Constructor and Description |
|---|
TextSizingUtility() |
| Modifier and Type | Method and Description |
|---|---|
javafx.geometry.Dimension2D |
calculate(int size,
javafx.scene.text.Font font)
Calculate the dimensions of a string using the font with the number of characters.
|
javafx.geometry.Dimension2D |
calculate(String text,
javafx.scene.text.Font font)
Calculate the dimensions of a string using the font with the number of characters.
|
(package private) double |
computeTextHeight(javafx.scene.text.Font font,
String text,
double wrappingWidth) |
(package private) double |
computeTextHeight(javafx.scene.text.Font font,
String text,
double wrappingWidth,
double lineSpacing) |
(package private) double |
computeTextWidth(javafx.scene.text.Font font,
String text,
double wrappingWidth) |
double computeTextWidth(javafx.scene.text.Font font,
String text,
double wrappingWidth)
double computeTextHeight(javafx.scene.text.Font font,
String text,
double wrappingWidth)
double computeTextHeight(javafx.scene.text.Font font,
String text,
double wrappingWidth,
double lineSpacing)
public javafx.geometry.Dimension2D calculate(int size,
javafx.scene.text.Font font)
size - font - public javafx.geometry.Dimension2D calculate(String text, javafx.scene.text.Font font)
size - font - Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.