BasicSplitPaneDivider
protected class BasicSplitPaneDivider.VerticalDragController extends BasicSplitPaneDivider.DragController
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).Modifier | Constructor | Description |
---|---|---|
protected |
Constructs a new instance of VerticalDragController . |
Modifier and Type | Method | Description |
---|---|---|
protected int |
getNeededLocation |
Returns the y argument, since this is used for vertical splits. |
protected int |
positionForMouseEvent |
Returns the new position to put the divider at based on the passed in MouseEvent. |
completeDrag, completeDrag, continueDrag, continueDrag, isValid
protected VerticalDragController(MouseEvent e)
VerticalDragController
.e
- a mouse eventprotected int getNeededLocation(int x, int y)
getNeededLocation
in class BasicSplitPaneDivider.DragController
x
- an X coordinatey
- an Y coordinateprotected int positionForMouseEvent(MouseEvent e)
positionForMouseEvent
in class BasicSplitPaneDivider.DragController
e
- a mouse event
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicSplitPaneDivider.VerticalDragController.html