java.awt.dnd
Class DropTarget.DropTargetAutoScroller

java.lang.Object
  extended byjava.awt.dnd.DropTarget.DropTargetAutoScroller
All Implemented Interfaces:
ActionListener, EventListener
Enclosing class:
DropTarget

protected static class DropTarget.DropTargetAutoScroller
extends Object
implements ActionListener

this protected nested class implements autoscrolling


Field Summary
private  Autoscroll autoScroll
           
private  Component component
           
private  int hysteresis
           
private  Rectangle inner
           
private  Point locn
           
private  Rectangle outer
           
private  Point prev
           
private  Timer timer
           
 
Constructor Summary
protected DropTarget.DropTargetAutoScroller(Component c, Point p)
          construct a DropTargetAutoScroller
 
Method Summary
 void actionPerformed(ActionEvent e)
          cause autoscroll to occur
protected  void stop()
          cause autoscrolling to stop
protected  void updateLocation(Point newLocn)
          cause autoscroll to occur
private  void updateRegion()
          update the geometry of the autoscroll region
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

private Component component

autoScroll

private Autoscroll autoScroll

timer

private Timer timer

locn

private Point locn

prev

private Point prev

outer

private Rectangle outer

inner

private Rectangle inner

hysteresis

private int hysteresis
Constructor Detail

DropTarget.DropTargetAutoScroller

protected DropTarget.DropTargetAutoScroller(Component c,
                                            Point p)
construct a DropTargetAutoScroller

Parameters:
c - the Component
p - the Point
Method Detail

updateRegion

private void updateRegion()
update the geometry of the autoscroll region


updateLocation

protected void updateLocation(Point newLocn)
cause autoscroll to occur

Parameters:
newLocn - the Point

stop

protected void stop()
cause autoscrolling to stop


actionPerformed

public void actionPerformed(ActionEvent e)
cause autoscroll to occur

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the ActionEvent