protected class BasicSplitPaneDivider.DragController extends Object
Modifier | Constructor and Description |
---|---|
protected |
BasicSplitPaneDivider.DragController(MouseEvent e)
Creates a new DragController object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
completeDrag(int x,
int y)
This method is called to finish the drag session by calling
finishDraggingTo.
|
protected void |
completeDrag(MouseEvent e)
This method is called to finish the drag session by calling
finishDraggingTo.
|
protected void |
continueDrag(int newX,
int newY)
This method is called to pass on the drag information to the UI through
dragDividerTo.
|
protected void |
continueDrag(MouseEvent e)
This method is called to pass on the drag information to the UI
through dragDividerTo.
|
protected int |
getNeededLocation(int x,
int y)
This method returns one of the two paramters for the orientation.
|
protected boolean |
isValid()
This method returns true if the divider can move.
|
protected int |
positionForMouseEvent(MouseEvent e)
Returns a position for the divider given the MouseEvent.
|
protected BasicSplitPaneDivider.DragController(MouseEvent e)
e
- The MouseEvent to initialize with.protected boolean isValid()
protected int positionForMouseEvent(MouseEvent e)
e
- MouseEvent.protected int getNeededLocation(int x, int y)
x
- The x coordinate.y
- The y coordinate.protected void continueDrag(int newX, int newY)
newX
- The x coordinate of the MouseEvent.newY
- The y coordinate of the MouseEvent.protected void continueDrag(MouseEvent e)
e
- The MouseEvent.protected void completeDrag(int x, int y)
x
- The x coordinate of the MouseEvent.y
- The y coordinate of the MouseEvent.protected void completeDrag(MouseEvent e)
e
- The MouseEvent.