Package VASSAL.tools

Class AdjustableSpeedScrollPane

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

public class AdjustableSpeedScrollPane extends ScrollPane
AdjustableSpeedScrollPane extends ScrollPane by making the scroll speed user-configurable. Use AdjustableScrollPane instead of ScrollPane wherever a scrollpane for large images is needed.
Author:
Joel Uckelman
See Also:
ScrollPane, JScrollPane, Serialized Form
  • Constructor Details

    • AdjustableSpeedScrollPane

      public AdjustableSpeedScrollPane(Component view)
      Creates an AdjustableSpeedScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.
      Parameters:
      view - the component to display in the scrollpane's viewport
    • AdjustableSpeedScrollPane

      public AdjustableSpeedScrollPane(Component view, int vsbPolicy, int hsbPolicy)
      Creates an AdjustableSpeedScrollPane that displays the view component in a viewport with the specified scrollbar policies. The available policy settings are listed at JScrollPane.setVerticalScrollBarPolicy(int) and JScrollPane.setHorizontalScrollBarPolicy(int).
      Parameters:
      view - the component to display in the scrollpane's viewport
      vsbPolicy - an integer that specifies the vertical scrollbar policy
      hsbPolicy - an integer that specifies the horizontal scrollbar policy