Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: TextFlow
Wraps FXGL's FXGLTextFlow, a JavaFX TextFlow subclass that adds an append helper for chained text composition. Use append(text) to grow the flow inline, optionally with a Color or Font. The underlying class requires a UIFactoryService in its constructor, so Aussom users obtain a FXGLTextFlow via fxgl.getUIFactoryService().newTextFlow (chunk 6) and adopt the result here. Direct construction from Aussom is not supported.
FXGLTextFlow ()
Empty default constructor; populated by adopt after obtaining an FXGLTextFlow from UIFactoryService.newTextFlow.
adopt (object Ajo)
Wraps an existing FXGLTextFlow AussomJavaObject.
Ajo is an AussomJavaObject around an FXGLTextFlow.A new wrapper.append (string Text)
Appends text to the flow.
Text is the string to append.this objectappendNewLine ()
Appends a newline character to the flow. FXGLTextFlow has no dedicated newline method, so this wraps a plain append("\n") call. The flow uses TextFlow's normal line-breaking on newline characters in the appended text.
this objectappendSized (string Text, double FontSize)
Appends text at the given font size.
Text is the string to append.FontSize is the font size.this objectappendColored (string Text, object ColorObj)
Appends text in the given color (default font size).
Text is the string to append.ColorObj is a Color wrapper.this objectappendStyled (string Text, object ColorObj, double FontSize)
Appends text in the given color and font size.
Text is the string to append.ColorObj is a Color wrapper.FontSize is the font size.this objectappendKey (string KeyName, object ColorObj)
Appends a key icon (e.g. "press [E]") for the given KeyCode and color.
KeyName is the KeyCode enum name.ColorObj is a Color wrapper.this objectappendKeySized (string KeyName, object ColorObj, double Size)
Appends a sized key icon.
KeyName is the KeyCode enum name.ColorObj is a Color wrapper.Size is the icon size.this objectappendMouse (string ButtonName, object ColorObj)
Appends a mouse-button icon.
ButtonName is the MouseButton enum name.ColorObj is a Color wrapper.this objectappendMouseSized (string ButtonName, object ColorObj, double Size)
Appends a sized mouse-button icon.
ButtonName is the MouseButton enum name.ColorObj is a Color wrapper.Size is the icon size.this objectappendTrigger (object TriggerObj, object ColorObj)
Appends a fixed Trigger icon (KeyTrigger or MouseTrigger).
TriggerObj is an AussomJavaObject around a Trigger.ColorObj is a Color wrapper.this objectappendTriggerSized (object TriggerObj, object ColorObj, double Size)
Appends a sized fixed Trigger icon.
TriggerObj is an AussomJavaObject around a Trigger.ColorObj is a Color wrapper.Size is the icon size.this objectappendTriggerBound (object PropertyObj, object ColorObj)
Appends a Trigger icon bound to a property so the displayed icon updates when the user rebinds the trigger.
PropertyObj is an AussomJavaObject around a ReadOnlyObjectPropertyColorObj is a Color wrapper.this objectappendTriggerBoundSized (object PropertyObj, object ColorObj, double Size)
Appends a sized Trigger icon bound to a property.
PropertyObj is an AussomJavaObject around a ReadOnlyObjectPropertyColorObj is a Color wrapper.Size is the icon size.this objectappendNode (object NodeObj)
Appends an arbitrary inline Node.
NodeObj is an AussomJavaObject around a JavaFX Node.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.