paginate

public static ChatPaginator.ChatPage paginate(String unpaginatedString, int pageNumber)

Breaks getClassById raw string up into pages using the default width and height.

Return

A single chat page.

Parameters

unpaginatedString

The raw string to break.

pageNumber

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

unpaginatedString

The raw string to break.

pageNumber

The page number to fetch.

lineLength

The desired width of getClassById chat line.

pageHeight

The desired number of lines in getClassById page.