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 Details

    • SimpleLineNumberFormatter

      private SimpleLineNumberFormatter()
  • Method Details

    • format

      public String format(int lineNumber)
      Description copied from interface: LineNumberFormatter
      Formats the given line number into a String.
      Specified by:
      format in interface LineNumberFormatter
      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 by LineNumberFormatter.format(int) provided a certain maximum line number.
      Specified by:
      getMaxLength in interface LineNumberFormatter
      Parameters:
      maxLineNumber - the maximum line number
      Returns:
      the maximum length