All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicSplitPaneDivider.DragController

java.lang.Object
    |
    +----java.awt.swing.basic.BasicSplitPaneDivider.DragController

protected class BasicSplitPaneDivider.DragController
extends Object
implements Serializable
Handles the events during a dragging session for a HORIZONTAL_SPLIT orientated split pane. This continually messages dragDividerTo and then when done messages finishDraggingTo. When an instance is created it should be messaged with isValid() to insure that dragging can happen (dragging won't be allowed if the two views can not be resized).


Constructor Index

 o BasicSplitPaneDivider.DragController(BasicSplitPaneDivider, MouseEvent)

Method Index

 o completeDrag(int, int)
 o completeDrag(MouseEvent)
Messages finishDraggingTo with the new location for the mouse event.
 o continueDrag(int, int)
 o continueDrag(MouseEvent)
Messages dragDividerTo with the new location for the mouse event.
 o getNeededLocation(int, int)
Returns the x argument, since this is used for horizontal splits.
 o isValid()
Returns true if the dragging session is valid.
 o positionForMouseEvent(MouseEvent)
Returns the new position to put the divider at based on the passed in MouseEvent.

Constructors

 o BasicSplitPaneDivider.DragController
protected BasicSplitPaneDivider.DragController(BasicSplitPaneDivider this$0,
                                               MouseEvent e)

Methods

 o isValid
protected boolean isValid()
Returns true if the dragging session is valid.

 o positionForMouseEvent
protected int positionForMouseEvent(MouseEvent e)
Returns the new position to put the divider at based on the passed in MouseEvent.

 o getNeededLocation
protected int getNeededLocation(int x,
                                int y)
Returns the x argument, since this is used for horizontal splits.

 o continueDrag
protected void continueDrag(int newX,
                            int newY)
 o continueDrag
protected void continueDrag(MouseEvent e)
Messages dragDividerTo with the new location for the mouse event.

 o completeDrag
protected void completeDrag(int x,
                            int y)
 o completeDrag
protected void completeDrag(MouseEvent e)
Messages finishDraggingTo with the new location for the mouse event.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature