javax.swing.plaf.basic
Class BasicSplitPaneDivider.VerticalDragController

java.lang.Object
  extended by javax.swing.plaf.basic.BasicSplitPaneDivider.DragController
      extended by javax.swing.plaf.basic.BasicSplitPaneDivider.VerticalDragController
Enclosing class:
BasicSplitPaneDivider

protected class BasicSplitPaneDivider.VerticalDragController
extends BasicSplitPaneDivider.DragController

This is a helper class that controls dragging when the orientation is VERTICAL_SPLIT.


Constructor Summary
protected BasicSplitPaneDivider.VerticalDragController(MouseEvent e)
          Creates a new VerticalDragController object.
 
Method Summary
protected  int getNeededLocation(int x, int y)
          This method returns one of the two parameters given the orientation.
protected  int positionForMouseEvent(MouseEvent e)
          This method returns the new location of the divider given a MouseEvent.
 
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneDivider.DragController
completeDrag, completeDrag, continueDrag, continueDrag, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSplitPaneDivider.VerticalDragController

protected BasicSplitPaneDivider.VerticalDragController(MouseEvent e)
Creates a new VerticalDragController object.

Parameters:
e - The MouseEvent to initialize with.
Method Detail

getNeededLocation

protected int getNeededLocation(int x,
                                int y)
This method returns one of the two parameters given the orientation. In this case, it returns y.

Overrides:
getNeededLocation in class BasicSplitPaneDivider.DragController
Parameters:
x - The x coordinate of the MouseEvent.
y - The y coordinate of the MouseEvent.
Returns:
The y coordinate.

positionForMouseEvent

protected int positionForMouseEvent(MouseEvent e)
This method returns the new location of the divider given a MouseEvent.

Overrides:
positionForMouseEvent in class BasicSplitPaneDivider.DragController
Parameters:
e - The MouseEvent.
Returns:
The new location of the divider.