Class JScrollBarLocationStrategy

java.lang.Object
org.fest.swing.driver.JScrollBarLocationStrategy
Direct Known Subclasses:
HorizontalJScrollBarLocation, VerticalJScrollBarLocation

@RunsInCurrentThread abstract class JScrollBarLocationStrategy extends Object
Understands a location in a JScrollBar in a orientation-specific way.

Note: methods in this class are not executed in the event dispatch thread (EDT.) Clients are responsible for invoking them in the EDT.

  • Constructor Details

    • JScrollBarLocationStrategy

      JScrollBarLocationStrategy()
  • Method Details

    • arrow

      abstract int arrow(JScrollBar scrollBar)
    • thumbLocation

      abstract Point thumbLocation(JScrollBar scrollBar, double fraction)
    • blockLocation

      abstract Point blockLocation(JScrollBar scrollBar, Point unitLocation, int offset)
    • unitLocationToScrollDown

      abstract Point unitLocationToScrollDown(JScrollBar scrollBar)