Inheritance diagram for org.jgraph.plaf.basic.BasicGraphDropTargetListener:
Public Member Functions | |
BasicGraphDropTargetListener () | |
synchronized void | actionPerformed (ActionEvent e) |
void | dragEnter (DropTargetDragEvent e) |
void | dragOver (DropTargetDragEvent e) |
void | dragExit (DropTargetEvent e) |
void | drop (DropTargetDropEvent e) |
void | dropActionChanged (DropTargetDragEvent e) |
Protected Member Functions | |
void | saveComponentState (JComponent c) |
void | restoreComponentState (JComponent c) |
void | restoreComponentStateForDrop (JComponent c) |
void | updateInsertionLocation (JComponent c, Point p) |
Package Functions | |
void | updateAutoscrollRegion (JComponent c) |
void | autoscroll (JComponent c, Point pos) |
Static Package Functions | |
static JComponent | getComponent (DropTargetEvent e) |
Private Member Functions | |
void | initPropertiesIfNecessary () |
void | cleanup () |
Private Attributes | |
Timer | timer |
Point | lastPosition |
Rectangle | outer = new Rectangle() |
Rectangle | inner = new Rectangle() |
int | hysteresis = 10 |
boolean | canImport |
JComponent | component |
|
construct a DropTargetAutoScroller |
|
The timer fired, perform autoscroll if the pointer is within the autoscroll region.
|
|
Perform an autoscroll operation. This is implemented to scroll by the unit increment of the Scrollable using scrollRectToVisible. If the cursor is in a corner of the autoscroll region, more than one axis will scroll. |
|
Cleans up internal state after the drop has finished (either succeeded or failed). |
|
Reimplemented in org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener. |
|
|
|
|
|
|
|
Reimplemented in org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener. |
|
|
|
Initializes the internal properties if they haven't been already inited. This is done lazily to avoid loading of desktop properties. |
|
called to restore the state of a component in case a drop is not performed. Reimplemented in org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener. |
|
called to restore the state of a component in case a drop is performed. |
|
called to save the state of a component in case it needs to be restored because a drop is not performed. Reimplemented in org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener. |
|
Update the geometry of the autoscroll region. The geometry is maintained as a pair of rectangles. The region can cause a scroll if the pointer sits inside it for the duration of the timer. The region that causes the timer countdown is the area between the two rectangles. This is implemented to use the visible area of the component as the outer rectangle and the insets are based upon the Scrollable information (if any). If the Scrollable is scrollable along an axis, the step increment is used as the autoscroll inset. If the component is not scrollable, the insets will be zero (i.e. autoscroll will not happen). |
|
called to set the insertion location to match the current mouse pointer coordinates. Reimplemented in org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener. |
|
|
|
The current component. The value is cached from the drop events and used by the timer. When a drag exits or a drop occurs, this value is cleared. |
|
|
|
|
|
|
|
|
|
|