| Modifier and Type | Field and Description |
|---|---|
| private static final DecimalFormat |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| 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 TextAlignment | |
| public static String | |
| private static int | |
| public static char | |
| public static boolean | |
| 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 int | |
| 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 | |
| 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 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 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[] | |
| public static byte[] |
| format | back to summary |
|---|---|
| private static final DecimalFormat format | |
| RichUtils | back to summary |
|---|---|
| private RichUtils() | |
| 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.
| |
| decodeAlignment | back to summary |
|---|---|
| public static TextAlignment decodeAlignment(int c) throws IOException
Deprecated
| |
| 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) | |
| encodeAlignment | back to summary |
|---|---|
| public static char encodeAlignment(TextAlignment a)
Deprecated
| |
| equals | back to summary |
|---|---|
| public static boolean equals(Object a, Object b) null-tolerant equals() | |
| 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
| |
| getTextLength | back to summary |
|---|---|
| public static int getTextLength(TextFlow f) | |
| 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
| |
| 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.
| |
| 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() | |
| 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, double deltax, double deltay) | |
| writePNG | back to summary |
|---|---|
| public static byte[] writePNG(Image im) throws IOException Writes an Image to a byte array in PNG format.
| |