Package io.keikai.api.model.impl
Class RichTextImpl
- java.lang.Object
-
- io.keikai.api.model.impl.RichTextImpl
-
- All Implemented Interfaces:
RichText
,Serializable
public class RichTextImpl extends Object implements RichText, Serializable
- Author:
- henri
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.api.model.RichText
RichText.Segment
-
-
Constructor Summary
Constructors Constructor Description RichTextImpl(Book book)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSegment(String text, Font font)
void
clearSegments()
Font
getFont()
SRichText
getNative()
List<RichText.Segment>
getSegments()
String
getText()
-
-
-
Constructor Detail
-
RichTextImpl
public RichTextImpl(Book book)
-
-
Method Detail
-
getNative
public SRichText getNative()
-
getSegments
public List<RichText.Segment> getSegments()
- Specified by:
getSegments
in interfaceRichText
-
addSegment
public void addSegment(String text, Font font)
- Specified by:
addSegment
in interfaceRichText
-
clearSegments
public void clearSegments()
- Specified by:
clearSegments
in interfaceRichText
-
-