Skip to content

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.

ValueSummary
NORMALDraws the text on one line, aligned in the box, even when it is wider than the box.
OVERFLOWDraws the text on one line and cuts it to the width of the box, ending with the overflow marker of the Text.
SPLITWraps the text into lines that fit the width of the box; the lines may run past its bottom.
BOXWraps the text like SPLIT and skips the lines that do not fit inside the height of the box.

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.


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

Report a problem with this page