TextMode
enum TextMode
Package: dev.joid.lib.draw.text · Module: core · Source: TextMode.java
How a text fits a box, on one line, cut, wrapped, or wrapped and clipped.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
NORMAL | Draws the text on one line, aligned in the box, even when it is wider than the box. |
OVERFLOW | Draws the text on one line and cuts it to the width of the box, ending with the overflow marker of the Text. |
SPLIT | Wraps the text into lines that fit the width of the box; the lines may run past its bottom. |
BOX | Wraps the text like SPLIT and skips the lines that do not fit inside the height of the box. |
Value details
Section titled “Value details”NORMAL
Section titled “NORMAL”NORMAL
Draws the text on one line, aligned in the box, even when it is wider than the box.
OVERFLOW
Section titled “OVERFLOW”OVERFLOW
Draws the text on one line and cuts it to the width of the box, ending with the overflow marker of the Text.
SPLIT
Wraps the text into lines that fit the width of the box; the lines may run past its bottom.
BOX
Wraps the text like SPLIT and skips the lines that do not fit inside the height of the box.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
