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).
BasicSplitPaneDivider.DragController(BasicSplitPaneDivider, MouseEvent)
-
completeDrag(int, int)
-
completeDrag(MouseEvent)
- Messages finishDraggingTo with the new location for the mouse
event.
continueDrag(int, int)
-
continueDrag(MouseEvent)
- Messages dragDividerTo with the new location for the mouse
event.
getNeededLocation(int, int)
- Returns the x argument, since this is used for horizontal
splits.
isValid()
- Returns true if the dragging session is valid.
positionForMouseEvent(MouseEvent)
- Returns the new position to put the divider at based on
the passed in MouseEvent.
BasicSplitPaneDivider.DragController
protected BasicSplitPaneDivider.DragController(BasicSplitPaneDivider this$0,
MouseEvent e)
isValid
protected boolean isValid()
- Returns true if the dragging session is valid.
positionForMouseEvent
protected int positionForMouseEvent(MouseEvent e)
- Returns the new position to put the divider at based on
the passed in MouseEvent.
getNeededLocation
protected int getNeededLocation(int x,
int y)
- Returns the x argument, since this is used for horizontal
splits.
continueDrag
protected void continueDrag(int newX,
int newY)
continueDrag
protected void continueDrag(MouseEvent e)
- Messages dragDividerTo with the new location for the mouse
event.
completeDrag
protected void completeDrag(int x,
int y)
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