-
public final class TextComponent.BuilderThe builder for TextComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private Integercolorprivate FloattextSizeSpprivate Typefacetypefaceprivate TextUtils.TruncateAtellipsizeprivate IntegerlineCountprivate Componentbackgroundprivate Paint.AligntextAlignprivate MutableDimensionspaddingprivate MutableDimensionsmargins
-
Constructor Summary
Constructors Constructor Description TextComponent.Builder()
-
Method Summary
Modifier and Type Method Description final IntegergetColor()final UnitsetColor(Integer color)final FloatgetTextSizeSp()final UnitsetTextSizeSp(Float textSizeSp)final TypefacegetTypeface()final UnitsetTypeface(Typeface typeface)final TextUtils.TruncateAtgetEllipsize()final UnitsetEllipsize(TextUtils.TruncateAt ellipsize)final IntegergetLineCount()final UnitsetLineCount(Integer lineCount)final ComponentgetBackground()final UnitsetBackground(Component background)final Paint.AligngetTextAlign()final UnitsetTextAlign(Paint.Align textAlign)final MutableDimensionsgetPadding()final UnitsetPadding(MutableDimensions padding)final MutableDimensionsgetMargins()final UnitsetMargins(MutableDimensions margins)final TextComponentbuild()Creates a new instance of TextComponent with the supplied properties. -
-
Method Detail
-
getTextSizeSp
final Float getTextSizeSp()
-
setTextSizeSp
final Unit setTextSizeSp(Float textSizeSp)
-
getTypeface
final Typeface getTypeface()
-
setTypeface
final Unit setTypeface(Typeface typeface)
-
getEllipsize
final TextUtils.TruncateAt getEllipsize()
-
setEllipsize
final Unit setEllipsize(TextUtils.TruncateAt ellipsize)
-
getLineCount
final Integer getLineCount()
-
setLineCount
final Unit setLineCount(Integer lineCount)
-
getBackground
final Component getBackground()
-
setBackground
final Unit setBackground(Component background)
-
getTextAlign
final Paint.Align getTextAlign()
-
setTextAlign
final Unit setTextAlign(Paint.Align textAlign)
-
getPadding
final MutableDimensions getPadding()
-
setPadding
final Unit setPadding(MutableDimensions padding)
-
getMargins
final MutableDimensions getMargins()
-
setMargins
final Unit setMargins(MutableDimensions margins)
-
build
final TextComponent build()
Creates a new instance of TextComponent with the supplied properties.
-
-
-
-