|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.basic.BasicSplitPaneDivider.DragController
protected class BasicSplitPaneDivider.DragController
Performs the tasks associated with an ongoing drag operation.
Constructor Summary | |
---|---|
protected |
BasicSplitPaneDivider.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BasicSplitPaneDivider.DragController(MouseEvent e)
e
- The MouseEvent to initialize with.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |