Module java.desktop
Package java.awt.dnd

Class DropTarget.DropTargetAutoScroller

java.lang.Object
java.awt.dnd.DropTarget.DropTargetAutoScroller
所有已实现的接口:
ActionListener, EventListener
封装类:
DropTarget

protected static class DropTarget.DropTargetAutoScroller extends Object implements ActionListener
这个受保护的嵌套类实现了自动滚动
  • Constructor Details

    • DropTargetAutoScroller

      protected DropTargetAutoScroller(Component c, Point p)
      构造一个DropTargetAutoScroller
      参数:
      c - Component
      p - Point
  • Method Details

    • updateLocation

      protected void updateLocation(Point newLocn)
      导致自动滚动发生
      参数:
      newLocn - Point
    • stop

      protected void stop()
      导致自动滚动停止
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      导致自动滚动发生
      指定者:
      actionPerformed 在接口 ActionListener
      参数:
      e - ActionEvent