Package org.fife.ui.rtextarea
Interface LineNumberFormatter
- All Known Implementing Classes:
LineNumberList.SimpleLineNumberFormatter
public interface LineNumberFormatter
Formats line numbers into a comprehensible String to be
displayed to the user.
-
Method Summary
Modifier and TypeMethodDescriptionformat(int lineNumber) Formats the given line number into a String.intgetMaxLength(int maxLineNumber) Returns the maximum number of characters of any string returned byformat(int)provided a certain maximum line number.
-
Method Details
-
format
Formats the given line number into a String.- Parameters:
lineNumber- the line number- Returns:
- the formatted line number
-
getMaxLength
int getMaxLength(int maxLineNumber) Returns the maximum number of characters of any string returned byformat(int)provided a certain maximum line number.- Parameters:
maxLineNumber- the maximum line number- Returns:
- the maximum length
-