Class AutoBottomScrollHelper

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class AutoBottomScrollHelper extends JScrollPane
See Also:
  • Constructor Details

  • Method Details

    • createVerticalScrollBar

      public JScrollBar createVerticalScrollBar()
      Overrides:
      createVerticalScrollBar in class JScrollPane
    • isAutoScrollEnabled

      public boolean isAutoScrollEnabled()
      Returns:
      Whether auto-scroll is desired. This will return true even if auto-scrolling is paused due to the user scrolling up.
    • isAtBottom

      public boolean isAtBottom()
      Returns:
      Whether we are currently at the bottom of the scroll viewport.
    • isAutoScrollActive

      public boolean isAutoScrollActive()
      Returns:
      Whether or not auto-scrolling is currently active, i.e. isAutoScrollEnabled() && isAtBottom().
    • setAutoScrollEnabled

      public void setAutoScrollEnabled(boolean autoScrollEnabled)