Interface ScrollbarModel


public interface ScrollbarModel
Interface providing detailed access to a specific scrollbar.
Since:
API version 21
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the zoom level expressed as content units per pixel.
    boolean
    Does this ScrollbarModel support zoom?.
    void
    zoomAtPosition(double position, double distance)
    Zoom in/out around a specific position (in content units).
    void
    zoomToContentRegion(double from, double to)
    Set the zoom level to fit a specific content range.
    void
    Adjusts the zoom level so it fits all content
    void
    Alternate the zoom level between fitting all content or the selection
    void
    Alternate the zoom level between fitting the selected content or the previous zoom level
    void
    Adjusts the zoom level so it fits the selected content
  • Method Details

    • isZoomable

      boolean isZoomable()
      Does this ScrollbarModel support zoom?.
      Since:
      API version 21
    • getContentPerPixel

      DoubleValue getContentPerPixel()
      Get the zoom level expressed as content units per pixel.
      Since:
      API version 21
    • zoomAtPosition

      void zoomAtPosition(double position, double distance)
      Zoom in/out around a specific position (in content units). The distance is given in 2ˣ, so +1 implies 200% of the current level and -1 implies 50%
      Since:
      API version 21
    • zoomToFit

      void zoomToFit()
      Adjusts the zoom level so it fits all content
      Since:
      API version 21
    • zoomToSelection

      void zoomToSelection()
      Adjusts the zoom level so it fits the selected content
      Since:
      API version 21
    • zoomToFitSelectionOrAll

      void zoomToFitSelectionOrAll()
      Alternate the zoom level between fitting all content or the selection
      Since:
      API version 21
    • zoomToFitSelectionOrCurrent

      void zoomToFitSelectionOrCurrent()
      Alternate the zoom level between fitting the selected content or the previous zoom level
      Since:
      API version 21
    • zoomToContentRegion

      void zoomToContentRegion(double from, double to)
      Set the zoom level to fit a specific content range.
      Since:
      API version 21