Package org.fife.ui.rtextarea
Class LineNumberList.SimpleLineNumberFormatter
java.lang.Object
org.fife.ui.rtextarea.LineNumberList.SimpleLineNumberFormatter
- All Implemented Interfaces:
LineNumberFormatter
- Enclosing class:
LineNumberList
private static class LineNumberList.SimpleLineNumberFormatter
extends Object
implements LineNumberFormatter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(int lineNumber) Formats the given line number into a String.int
getMaxLength
(int maxLineNumber) Returns the maximum number of characters of any string returned byLineNumberFormatter.format(int)
provided a certain maximum line number.
-
Constructor Details
-
SimpleLineNumberFormatter
private SimpleLineNumberFormatter()
-
-
Method Details
-
format
Description copied from interface:LineNumberFormatter
Formats the given line number into a String.- Specified by:
format
in interfaceLineNumberFormatter
- Parameters:
lineNumber
- the line number- Returns:
- the formatted line number
-
getMaxLength
public int getMaxLength(int maxLineNumber) Description copied from interface:LineNumberFormatter
Returns the maximum number of characters of any string returned byLineNumberFormatter.format(int)
provided a certain maximum line number.- Specified by:
getMaxLength
in interfaceLineNumberFormatter
- Parameters:
maxLineNumber
- the maximum line number- Returns:
- the maximum length
-