Class ScrollSection

    • Constructor Detail

      • ScrollSection

        public ScrollSection()
    • Method Detail

      • followTail

        public ScrollSection followTail​(boolean follow)
      • setLines

        public ScrollSection setLines​(java.util.List<java.lang.String> newLines)
      • setLines

        public ScrollSection setLines​(java.util.List<java.lang.String> newLines,
                                      java.util.List<Style> newStyles)
        Replaces all lines, styling each with the style at the same index; a null style uses the section style.
        Parameters:
        newLines - the lines to show
        newStyles - one style per line, or null entries for the default
        Returns:
        this section
        Throws:
        java.lang.IllegalArgumentException - if the lists differ in size
      • lineCount

        public int lineCount()
      • scrollTop

        public int scrollTop()