| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | CALLER
includes FILE.METHOD:LINE in the debug output |
| private static final boolean | DEBUG
enables debug output |
| private static final DecimalFormat |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TextPos | advancePosition(TextPos start, int offset)
Returns the text positions at a positive offset relative to the 'start' position. |
| public static boolean | |
| public static StyleAttributeMap | Returns: the combined attributes, or nullthe low priority attributes lowPri, StyleAttributeMap the high priority attributes hiPri)Combines style attributes, returning combined object (or null). |
| public static List | Returns: the immutable list containing all of the itemsthe inheritedFromParent, CssMetaData<? extends Styleable, ?>... CssMetaData items inherited from parent, must not be nullthe additional items items)Utility method which combines |
| public static double | Returns: the midpointthe PathElements path)Computes y midpoint of MoveTo and LineTo path elements. |
| public static boolean | |
| public static String | |
| private static int | |
| public static boolean | |
| public static StyleAttributeMap | |
| public static StyleAttributeMap | |
| public static String | |
| public static StyleAttributeMap | Returns: the StyleAttributeMap instancethe text node textNode)Creates an instance of StyleAttributeMap which contains character attributes found in the specified |
| public static String | |
| public static <T extends Node> T | |
| public static int | getTextLength(TextFlow f)
Computes text length for the TextFlow embedded into TextCell, ignoring unmanagement Nodes (highlights) and counting non-Text nodes as having length=1. |
| public static String | Returns: font style: [ normal | italic | oblique ]font name, must be lowercase'd lowerCaseName)Guesses the font style from the font name, until JDK-8092191 is implemented. |
| public static String | Returns: font weight: [ normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]font name, must be lowercase'd lowerCaseName)Guesses the font weight from the font name, until JDK-8092191 is implemented. |
| public static boolean | |
| public static boolean | isDarkScheme(Node n)
Returns true if the color scheme is DARK, checking first the node's scene, then platform preferences. |
| public static boolean | |
| public static boolean | Returns: true if the code point at the specified offset is a letter or a digitthe text text, int the character offset offset)Returns true if code point at the specified offset is a letter or a digit, returns false otherwise or if the offset is outside of the valid range. |
| public static boolean | Returns: true if logical, false otherwisethe font family family)Returns true if the font family corresponds to a logical font as defined in OpenJFX Font Setup wiki. |
| public static boolean | |
| public static void | layoutInArea(Node
the node to lay out n, double the horizontal offset of the layout area x, double the vertical offset of the layout area y, double the width of the layout area w, double the height of the layout area h)Convenience method for laying out the node within its parent, filling the available area. |
| public static Integer | |
| public static int | Returns: the line indexthe character offset offset)Returns the line index of the given character offset. |
| public static Integer | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int | Returns: the offset of the next code point, or the end of the text stringthe text text, int the offset to start from offset)Returns the offset of the next code point, or the end of the text string. |
| public static boolean | |
| private static void | |
| private static int | |
| public static Bounds[] | pathToBoundsArray(Node owner, PathElement[] elements)
Converts PathElement[] in the owner's coordinates to a Bounds[] in screen coordinates. |
| private static int | |
| public static String | Returns: the stringthe input stream in)Reads a UTF8 string from the input stream. |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static PathElement[] | Returns: translated path array, or nullthe target Region tgt, Region the source Region src, PathElement[] the path elements elements)Translates path (which must contain only LineTo and MoveTo elements) from src frame of reference to the target frame of reference. |
| public static byte[] |
| CALLER | back to summary |
|---|---|
| private static final boolean CALLER includes FILE.METHOD:LINE in the debug output | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG enables debug output | |
| format | back to summary |
|---|---|
| private static final DecimalFormat format | |
| RichUtils | back to summary |
|---|---|
| private RichUtils() | |
| advancePosition | back to summary |
|---|---|
| public static TextPos advancePosition(TextPos start, int offset) Returns the text positions at a positive offset relative to the 'start' position. | |
| canEdit | back to summary |
|---|---|
| public static boolean canEdit(RichTextArea rta) returns true if both control and model are editable | |
| combine | back to summary |
|---|---|
| public static StyleAttributeMap combine(StyleAttributeMap lowPri, StyleAttributeMap hiPri) Combines style attributes, returning combined object (or null).
| |
| combine | back to summary |
|---|---|
| public static List Utility method which combines
The intended usage is to combine the parent and the child Example:
This method returns an instance of a List that implements
java. interface.
| |
| computeMidPointY | back to summary |
|---|---|
| public static double computeMidPointY(PathElement[] path) Computes y midpoint of MoveTo and LineTo path elements.
| |
| containsInlineNodes | back to summary |
|---|---|
| public static boolean containsInlineNodes(StyleAttributeMap map) | |
| dump | back to summary |
|---|---|
| public static String dump(PathElement[] elements) dumps the path element array to a compact human-readable string | |
| eightBit | back to summary |
|---|---|
| private static int eightBit(double val) | |
| equals | back to summary |
|---|---|
| public static boolean equals(Object a, Object b) null-tolerant equals() | |
| filterOutNodeAttributes | back to summary |
|---|---|
| public static StyleAttributeMap filterOutNodeAttributes(StyleAttributeMap map) | |
| filterUnsupportedAttributes | back to summary |
|---|---|
| public static StyleAttributeMap filterUnsupportedAttributes(StyleAttributeMap map, Set<StyleAttribute<?>> supported) | |
| formatDouble | back to summary |
|---|---|
| public static String formatDouble(Double value) | |
| fromTextNode | back to summary |
|---|---|
| public static StyleAttributeMap fromTextNode(Text textNode) Creates an instance of StyleAttributeMap which contains character attributes found in the specified
| |
| getImeText | back to summary |
|---|---|
| public static String getImeText(InputMethodEvent ev) Returns composed or committed text. | |
| getParentOfClass | back to summary |
|---|---|
| public static <T extends Node> T getParentOfClass(Class<T> c, Node node) returns a parent of the specified type, or null. if node is an instance of the specified class, returns node | |
| getTextLength | back to summary |
|---|---|
| public static int getTextLength(TextFlow f) Computes text length for the TextFlow embedded into TextCell, ignoring unmanagement Nodes (highlights) and counting non-Text nodes as having length=1. | |
| guessFontStyle | back to summary |
|---|---|
| public static String guessFontStyle(String lowerCaseName) Guesses the font style from the font name, until JDK-8092191 is implemented. | |
| guessFontWeight | back to summary |
|---|---|
| public static String guessFontWeight(String lowerCaseName) Guesses the font weight from the font name, until JDK-8092191 is implemented. | |
| isBold | back to summary |
|---|---|
| public static boolean isBold(String lowerCaseFontName) Returns true if the specified lowercased font name is determined to be bold. This method is not guaranteed to work in any circumstances, see JDK-8092191
| |
| isDarkScheme | back to summary |
|---|---|
| public static boolean isDarkScheme(Node n) Returns true if the color scheme is DARK, checking first the node's scene, then platform preferences. | |
| isItalic | back to summary |
|---|---|
| public static boolean isItalic(String lowerCaseFontName) Returns true if the specified lowercased font name is determined to be italic or oblique. This method is not guaranteed to work in any circumstances, see JDK-8092191
| |
| isLetterOrDigit | back to summary |
|---|---|
| public static boolean isLetterOrDigit(String text, int offset) Returns true if code point at the specified offset is a letter or a digit, returns false otherwise or if the offset is outside of the valid range.
| |
| isLogicalFont | back to summary |
|---|---|
| public static boolean isLogicalFont(String family) Returns true if the font family corresponds to a logical font as defined in OpenJFX Font Setup wiki.
| |
| isTouchSupported | back to summary |
|---|---|
| public static boolean isTouchSupported() | |
| layoutInArea | back to summary |
|---|---|
| public static void layoutInArea(Node n, double x, double y, double w, double h) Convenience method for laying out the node within its parent, filling the available area.
This method is equivalent to calling
| |
| lineEnd | back to summary |
|---|---|
| public static Integer lineEnd(TextFlow f, int line) Returns the line end offset of the given line index.
| |
| lineForOffset | back to summary |
|---|---|
| public static int lineForOffset(TextFlow f, int offset) Returns the line index of the given character offset.
| |
| lineStart | back to summary |
|---|---|
| public static Integer lineStart(TextFlow f, int line) Returns the line start offset of the given line index.
| |
| log | back to summary |
|---|---|
| public static void log(Throwable e) | |
| log | back to summary |
|---|---|
| public static void log(Object x) | |
| log | back to summary |
|---|---|
| public static void log(String format, Object... items) | |
| log | back to summary |
|---|---|
| public static void log(Supplier<Object> x) | |
| nextCodePoint | back to summary |
|---|---|
| public static int nextCodePoint(String text, int offset) Returns the offset of the next code point, or the end of the text string.
| |
| notEquals | back to summary |
|---|---|
| public static boolean notEquals(Object a, Object b) null-tolerant !equals() | |
| output | back to summary |
|---|---|
| private static void output(Object x) | |
| parseInt | back to summary |
|---|---|
| private static int parseInt(Object x) | |
| pathToBoundsArray | back to summary |
|---|---|
| public static Bounds[] pathToBoundsArray(Node owner, PathElement[] elements) Converts PathElement[] in the owner's coordinates to a Bounds[] in screen coordinates. It assumes the input array is a sequence of MoveTo (top-left) LineTo (to top-right) LineTo (bottom-right) LineTo (bottom-left) LineTo (back to top-left)This method will break if the input sequence is different. | |
| r | back to summary |
|---|---|
| private static int r(double x) | |
| readString | back to summary |
|---|---|
| public static String readString(InputStream in) throws IOException Reads a UTF8 string from the input stream. This method does not close the input stream.
| |
| substring | back to summary |
|---|---|
| public static String substring(String text, int start, int end) A safe substring method which is tolerant to null text, and offsets being outside of the text boundaries. | |
| toCss | back to summary |
|---|---|
| public static String toCss(TextAlignment a) | |
| toCssColor | back to summary |
|---|---|
| public static String toCssColor(Color c) Converts Color to "#rrggbb" or "rgba(r,g,b,a)" string | |
| toWebColor | back to summary |
|---|---|
| public static String toWebColor(Color c) | |
| translatePath | back to summary |
|---|---|
| public static PathElement[] translatePath(Region tgt, Region src, PathElement[] elements) Translates path (which must contain only LineTo and MoveTo elements) from src frame of reference to the target frame of reference.
| |
| writePNG | back to summary |
|---|---|
| public static byte[] writePNG(Image im) throws IOException Writes an Image to a byte array in PNG format.
| |