Interface Scrollable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void scrollLines​(int firstLine, int lastLine, int distance)
      Scroll a range of lines of this Scrollable according to given distance.
    • Method Detail

      • scrollLines

        void scrollLines​(int firstLine,
                         int lastLine,
                         int distance)
                  throws java.io.IOException
        Scroll a range of lines of this Scrollable according to given distance. If scroll-range is empty (firstLine > lastLine || distance == 0) then this method does nothing. Lines that are scrolled away from are cleared. If absolute value of distance is equal or greater than number of lines in range, then all lines within the range will be cleared.
        Parameters:
        firstLine - first line of the range to be scrolled (top line is 0)
        lastLine - last (inclusive) line of the range to be scrolled
        distance - if > 0: move lines up, else if < 0: move lines down.
        Throws:
        java.io.IOException - If there was an I/O error when running the operation