Most visited

Recently visited

Text.LineBreakMode

public static final enum Text.LineBreakMode
extends Enum<Text.LineBreakMode>

java.lang.Object
   ↳ java.lang.Enum<com.viro.core.Text.LineBreakMode>
     ↳ com.viro.core.Text.LineBreakMode


Controls the way in which text wraps when it exceeds its bound's width.

Summary

Enum values

Text.LineBreakMode  CHAR_WRAP

Text will wrap character by character. 

Text.LineBreakMode  JUSTIFY

Text will wrap by word boundaries; the newlines and length of each space are chosen to minimize the raggedness of the text edges. 

Text.LineBreakMode  NONE

Text does not wrap; everything is kept on one line. 

Text.LineBreakMode  WORD_WRAP

Text will wrap on word boundaries; each time a word doesn't fit, Text will move to a new line. 

Public methods

static Text.LineBreakMode valueOf(String name)
static final LineBreakMode[] values()

Enum values

CHAR_WRAP

Text.LineBreakMode CHAR_WRAP

Text will wrap character by character.

JUSTIFY

Text.LineBreakMode JUSTIFY

Text will wrap by word boundaries; the newlines and length of each space are chosen to minimize the raggedness of the text edges. If used with LEFT, this minimizes the raggedness of the right edge; if used with RIGHT, this minimizes the raggedness of the left edge; and if used with CENTER this will attempt to minimize the raggedness of both edges.

NONE

Text.LineBreakMode NONE

Text does not wrap; everything is kept on one line.

WORD_WRAP

Text.LineBreakMode WORD_WRAP

Text will wrap on word boundaries; each time a word doesn't fit, Text will move to a new line. If a single word doesn't fit on one line, that word will be placed alone on its own line.

Public methods

valueOf

Text.LineBreakMode valueOf (String name)

Parameters
name String

Returns
Text.LineBreakMode

values

LineBreakMode[] values ()

Returns
LineBreakMode[]

Hooray!