protected class BasicSplitPaneDivider.VerticalDragController extends BasicSplitPaneDivider.DragController
dragDividerTo
,然后完成消息finishDraggingTo
。
当创建实例时,应该使用isValid
进行消息,以确保可能发生拖动(如果两个视图无法调整大小,则不允许拖动)。
Modifier | Constructor and Description |
---|---|
protected |
VerticalDragController(MouseEvent e) |
Modifier and Type | Method and Description |
---|---|
protected int |
getNeededLocation(int x, int y)
返回y参数,因为它用于垂直分割。
|
protected int |
positionForMouseEvent(MouseEvent e)
返回基于MouseEvent中传递的分隔符的新位置。
|
completeDrag, completeDrag, continueDrag, continueDrag, isValid
protected VerticalDragController(MouseEvent e)
protected int getNeededLocation(int x, int y)
protected int positionForMouseEvent(MouseEvent e)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.