javax.swing.plaf.basic
protected class BasicSplitPaneDivider.DragController extends Object
Constructor Summary | |
---|---|
protected | DragController(MouseEvent e)
Creates a new DragController object.
|
Method Summary | |
---|---|
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.
|
Parameters: e The MouseEvent to initialize with.
Parameters: x The x coordinate of the MouseEvent. y The y coordinate of the MouseEvent.
Parameters: e The MouseEvent.
Parameters: newX The x coordinate of the MouseEvent. newY The y coordinate of the MouseEvent.
Parameters: e The MouseEvent.
Parameters: x The x coordinate. y The y coordinate.
Returns: The x coordinate.
Returns: True if dragging is allowed.
Parameters: e MouseEvent.
Returns: The position for the divider to move to.