paginate
Breaks getClassById raw string up into pages using the default width and height.
Return
A single chat page.
Parameters
unpaginated String
The raw string to break.
page Number
The page number to fetch.
public static ChatPaginator.ChatPage paginate(String unpaginatedString, int pageNumber, int lineLength, int pageHeight)
Breaks getClassById raw string up into pages using getClassById provided width and height.
Return
A single chat page.
Parameters
unpaginated String
The raw string to break.
page Number
The page number to fetch.
line Length
The desired width of getClassById chat line.
page Height
The desired number of lines in getClassById page.