Class AutoscrollAdapter

  • All Implemented Interfaces:
    java.awt.dnd.Autoscroll

    public class AutoscrollAdapter
    extends java.lang.Object
    implements java.awt.dnd.Autoscroll
    Helper class for autoscrolling on a component.
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoscrollAdapter​(javax.swing.JComponent component, int scrollIncrement)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void autoscroll​(java.awt.Point p)  
      java.awt.Insets getAutoscrollInsets()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AutoscrollAdapter

        public AutoscrollAdapter​(javax.swing.JComponent component,
                                 int scrollIncrement)
        Constructor
        Parameters:
        component - component that is scrollable
        scrollIncrement - value to use to calculate the new visible rectangle for scrolling
    • Method Detail

      • getAutoscrollInsets

        public java.awt.Insets getAutoscrollInsets()
        Specified by:
        getAutoscrollInsets in interface java.awt.dnd.Autoscroll
      • autoscroll

        public void autoscroll​(java.awt.Point p)
        Specified by:
        autoscroll in interface java.awt.dnd.Autoscroll