Most visited

Recently visited

Text.TextBuilder

public static class Text.TextBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.Text.TextBuilder


Builder for creating Text objects.

Summary

Public constructors

Text.TextBuilder()

Public methods

Text build()

Return the built Text.

Text.TextBuilder clipMode(Text.ClipMode mClipMode)

Refer to setClipMode(ClipMode).

Text.TextBuilder color(long mColor)

Refer to setColor(long).

Text.TextBuilder fontFamilyName(String mFontFamilyName)

Refer to setFontFamilyName(String).

Text.TextBuilder fontSize(int mFontSize)

Refer to setFontSize(int).

Text.TextBuilder height(float mHeight)

Refer to setHeight(float).

Text.TextBuilder horizontalAlignment(Text.HorizontalAlignment mHorizontalAlignment)

Refer to setHorizontalAlignment(HorizontalAlignment).

Text.TextBuilder lineBreakMode(Text.LineBreakMode mLineBreakMode)

Refer to setLineBreakMode(LineBreakMode).

Text.TextBuilder maxLines(int mMaxLines)

Refer to setMaxLines(int).

Text.TextBuilder textString(String mText)

Refer to setText(String).

Text.TextBuilder verticalAlignment(Text.VerticalAlignment mVerticalAlignment)

Refer to setVerticalAlignment(VerticalAlignment).

Text.TextBuilder viroContext(ViroContext mViroContext)

Set the ViroContext to be used while building Text object.

Text.TextBuilder width(float mWidth)

Refer to setWidth(float).

Public constructors

Text.TextBuilder

Text.TextBuilder ()

Public methods

build

Text build ()

Return the built Text.

Returns
Text The built Text.

clipMode

Text.TextBuilder clipMode (Text.ClipMode mClipMode)

Refer to setClipMode(ClipMode).

Parameters
mClipMode Text.ClipMode

Returns
Text.TextBuilder This builder.

color

Text.TextBuilder color (long mColor)

Refer to setColor(long).

Parameters
mColor long

Returns
Text.TextBuilder This builder.

fontFamilyName

Text.TextBuilder fontFamilyName (String mFontFamilyName)

Refer to setFontFamilyName(String).

Parameters
mFontFamilyName String

Returns
Text.TextBuilder This builder.

fontSize

Text.TextBuilder fontSize (int mFontSize)

Refer to setFontSize(int).

Parameters
mFontSize int

Returns
Text.TextBuilder This builder.

height

Text.TextBuilder height (float mHeight)

Refer to setHeight(float).

Parameters
mHeight float

Returns
Text.TextBuilder This builder.

horizontalAlignment

Text.TextBuilder horizontalAlignment (Text.HorizontalAlignment mHorizontalAlignment)

Refer to setHorizontalAlignment(HorizontalAlignment).

Parameters
mHorizontalAlignment Text.HorizontalAlignment

Returns
Text.TextBuilder This builder.

lineBreakMode

Text.TextBuilder lineBreakMode (Text.LineBreakMode mLineBreakMode)

Refer to setLineBreakMode(LineBreakMode).

Parameters
mLineBreakMode Text.LineBreakMode

Returns
Text.TextBuilder This builder.

maxLines

Text.TextBuilder maxLines (int mMaxLines)

Refer to setMaxLines(int).

Parameters
mMaxLines int

Returns
Text.TextBuilder This builder.

textString

Text.TextBuilder textString (String mText)

Refer to setText(String).

Parameters
mText String

Returns
Text.TextBuilder This builder.

verticalAlignment

Text.TextBuilder verticalAlignment (Text.VerticalAlignment mVerticalAlignment)

Refer to setVerticalAlignment(VerticalAlignment).

Parameters
mVerticalAlignment Text.VerticalAlignment

Returns
Text.TextBuilder This builder.

viroContext

Text.TextBuilder viroContext (ViroContext mViroContext)

Set the ViroContext to be used while building Text object.

Parameters
mViroContext ViroContext

Returns
Text.TextBuilder This builder.

width

Text.TextBuilder width (float mWidth)

Refer to setWidth(float).

Parameters
mWidth float

Returns
Text.TextBuilder This builder.

Hooray!