| Modifier and Type | Field and Description |
|---|---|
| private static final TextBoundsType | |
| private static final double | |
| private static final String | |
| private static final double | |
| private static final AtomicBoolean | |
| private static final AtomicBoolean | |
| private static final TextLayout | |
| private static final Text |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static double | |
| public static String | Returns: the actual text to be shown, with the ellipsis string inserted when neededthe font font, String the original text text, double the available width width, OverrunStyle the truncation style type, String the ellipsis string ellipsisString, AtomicBoolean the reference to a flag indicating the truncation textTruncated)Computes the actual text to be shown in the Labeled with the text wrapping disabled:
unmodified if it fits into available area,
or with the |
| public static String | Returns: the actual text to be shown, with the ellipsis string inserted when neededthe font font, String the original text text, double the available width width, double the available height height, double the line spacing lineSpacing, OverrunStyle the truncation style truncationStyle, String the ellipsis string ellipsisString, AtomicBoolean the reference to a flag indicating the truncation textTruncated, TextBoundsType the bounds type boundsType)Computes the actual text to be shown in the Labeled with the text wrapping enabled:
unmodified if it fits into available area,
or with the |
| pack-priv static int | |
| public static Point2D | computeMnemonicPosition(Font font, String text, int mnemonicIndex, double wrappingWidth, double lineSpacing, boolean isRTL)
|
| pack-priv static int | |
| public static double | |
| public static double | computeTextHeight(Font font, String text, double wrappingWidth, double lineSpacing, TextBoundsType boundsType)
|
| public static double | |
| public static int | |
| public static double | |
| public static double | |
| public static <T> void | |
| private static int | |
| public static String | |
| public static double | |
| public static double | |
| public static URL | |
| private static Text | |
| private static boolean | |
| public static boolean | |
| private static int | |
| private static TextLayout | |
| private static void | |
| private static void | |
| public static void | |
| private static boolean |
| DEFAULT_BOUNDS_TYPE | back to summary |
|---|---|
| private static final TextBoundsType DEFAULT_BOUNDS_TYPE | |
| DEFAULT_LINE_SPACING | back to summary |
|---|---|
| private static final double DEFAULT_LINE_SPACING | |
| DEFAULT_TEXT | back to summary |
|---|---|
| private static final String DEFAULT_TEXT | |
| DEFAULT_WRAPPING_WIDTH | back to summary |
|---|---|
| private static final double DEFAULT_WRAPPING_WIDTH | |
| helperGuard | back to summary |
|---|---|
| private static final AtomicBoolean helperGuard | |
| layoutGuard | back to summary |
|---|---|
| private static final AtomicBoolean layoutGuard | |
| layoutInstance | back to summary |
|---|---|
| private static final TextLayout layoutInstance | |
| textInstance | back to summary |
|---|---|
| private static final Text textInstance | |
| Utils | back to summary |
|---|---|
| public Utils() | |
| addMnemonics | back to summary |
|---|---|
| public static void addMnemonics(ContextMenu popup, Scene scene) | |
| addMnemonics | back to summary |
|---|---|
| public static void addMnemonics(ContextMenu popup, Scene scene, boolean initialState) | |
| addMnemonics | back to summary |
|---|---|
| public static void addMnemonics(ContextMenu popup, Scene scene, boolean initialState, List<Mnemonic> into) | |
| boundedSize | back to summary |
|---|---|
| public static double boundedSize(double value, double min, double max) | |
| computeClippedText | back to summary |
|---|---|
| public static String computeClippedText(Font font, String text, double width, OverrunStyle type, String ellipsisString, AtomicBoolean textTruncated) Computes the actual text to be shown in the Labeled with the text wrapping disabled:
unmodified if it fits into available area,
or with the
| |
| computeClippedWrappedText | back to summary |
|---|---|
| public static String computeClippedWrappedText(Font font, String text, double width, double height, double lineSpacing, OverrunStyle truncationStyle, String ellipsisString, AtomicBoolean textTruncated, TextBoundsType boundsType) Computes the actual text to be shown in the Labeled with the text wrapping enabled:
unmodified if it fits into available area,
or with the
| |
| computeEndOfWord | back to summary |
|---|---|
| pack-priv static int computeEndOfWord(Font font, String text, int index) | |
| computeMnemonicPosition | back to summary |
|---|---|
| public static Point2D computeMnemonicPosition(Font font, String text, int mnemonicIndex, double wrappingWidth, double lineSpacing, boolean isRTL) | |
| computeStartOfWord | back to summary |
|---|---|
| pack-priv static int computeStartOfWord(Font font, String text, int index) | |
| computeTextHeight | back to summary |
|---|---|
| public static double computeTextHeight(Font font, String text, double wrappingWidth, TextBoundsType boundsType) | |
| computeTextHeight | back to summary |
|---|---|
| public static double computeTextHeight(Font font, String text, double wrappingWidth, double lineSpacing, TextBoundsType boundsType) | |
| computeTextWidth | back to summary |
|---|---|
| public static double computeTextWidth(Font font, String text, double wrappingWidth) | |
| computeTruncationIndex | back to summary |
|---|---|
| public static int computeTruncationIndex(Font font, String text, double width) | |
| computeXOffset | back to summary |
|---|---|
| public static double computeXOffset(double width, double contentWidth, HPos hpos) | |
| computeYOffset | back to summary |
|---|---|
| public static double computeYOffset(double height, double contentHeight, VPos vpos) | |
| executeOnceWhenPropertyIsNonNull | back to summary |
|---|---|
| public static <T> void executeOnceWhenPropertyIsNonNull(ObservableValue<T> p, Consumer<T> consumer) | |
| firstBreakCharIndex | back to summary |
|---|---|
| private static int firstBreakCharIndex(String str, int start) | |
| formatHexString | back to summary |
|---|---|
| public static String formatHexString(Color c) | |
| getAscent | back to summary |
|---|---|
| public static double getAscent(Font font, TextBoundsType boundsType) | |
| getLineHeight | back to summary |
|---|---|
| public static double getLineHeight(Font font, TextBoundsType boundsType) | |
| getResource | back to summary |
|---|---|
| public static URL getResource(String str) | |
| helper | back to summary |
|---|---|
| private static Text helper() | |
| isPreferredBreakCharacter | back to summary |
|---|---|
| private static boolean isPreferredBreakCharacter(char ch) | |
| isTwoLevelFocus | back to summary |
|---|---|
| public static boolean isTwoLevelFocus() | |
| lastBreakCharIndex | back to summary |
|---|---|
| private static int lastBreakCharIndex(String str, int start) | |
| layout | back to summary |
|---|---|
| private static TextLayout layout() | |
| release | back to summary |
|---|---|
| private static void release(Text t) | |
| release | back to summary |
|---|---|
| private static void release(TextLayout t) | |
| removeMnemonics | back to summary |
|---|---|
| public static void removeMnemonics(ContextMenu popup, Scene scene) | |
| requiresComplexLayout | back to summary |
|---|---|
| private static boolean requiresComplexLayout(Font font, String string) | |