protected class BasicSplitPaneDivider.DragController extends Object
dragDividerTo
然后当完成消息
finishDraggingTo
。当一个实例被创建的应该是信息与
isValid
确保拖动(拖动会不会如果两视图不能被调整大小允许)。
警告:序列化该类的对象与以后的Swing版本不兼容。当前的序列化支持适用于短期贮藏或RMI运行相同Swing版本的应用程序之间。为1.4,为所有JavaBeans™长期存储的支持已被添加到java.beans
包。请看XMLEncoder
。
Modifier | Constructor and Description |
---|---|
protected |
DragController(MouseEvent e) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeDrag(int x, int y) |
protected void |
completeDrag(MouseEvent e)
消息finishdraggingto对鼠标事件的新位置。
|
protected void |
continueDrag(int newX, int newY) |
protected void |
continueDrag(MouseEvent e)
消息dragdividerto对鼠标事件的新位置。
|
protected int |
getNeededLocation(int x, int y)
返回X参数,因为这是用于水平分割。
|
protected boolean |
isValid()
如果拖动会话有效,则返回真。
|
protected int |
positionForMouseEvent(MouseEvent e)
返回新的位置将分频器基于传入的事件。
|
protected DragController(MouseEvent e)
protected boolean isValid()
protected int positionForMouseEvent(MouseEvent e)
protected int getNeededLocation(int x, int y)
protected void continueDrag(int newX, int newY)
protected void continueDrag(MouseEvent e)
protected void completeDrag(int x, int y)
protected void completeDrag(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.