-
public final class MobileSegment.TextStyle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classMobileSegment.TextStyle.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringfamilyprivate final Longsizeprivate final Stringcolorprivate final MobileSegment.TruncationModetruncationMode
-
Constructor Summary
Constructors Constructor Description MobileSegment.TextStyle(String family, Long size, String color, MobileSegment.TruncationMode truncationMode)
-
Method Summary
Modifier and Type Method Description final StringgetFamily()final LonggetSize()final StringgetColor()final MobileSegment.TruncationModegetTruncationMode()final JsonElementtoJson()-
-
Constructor Detail
-
MobileSegment.TextStyle
MobileSegment.TextStyle(String family, Long size, String color, MobileSegment.TruncationMode truncationMode)
- Parameters:
family- The preferred font family collection, ordered by preference and formatted as a String list: e.g.size- The font size in pixels.color- The font color as a string hexadecimal.truncationMode- Defines how text should be truncated when it exceeds the wireframe bounds.
-
-
Method Detail
-
getTruncationMode
final MobileSegment.TruncationMode getTruncationMode()
-
toJson
final JsonElement toJson()
-
-
-
-