javax.swing.plaf
Class SplitPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SplitPaneUI
Direct Known Subclasses:
BasicSplitPaneUI, MultiSplitPaneUI

public abstract class SplitPaneUI
extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a JSplitPane.

See Also:
JSplitPane

Constructor Summary
SplitPaneUI()
          Constructs a new SplitPaneUI.
 
Method Summary
abstract  void finishedPaintingChildren(JSplitPane pane, Graphics g)
          Called by the JSplitPane after it has finished painting its children.
abstract  int getDividerLocation(JSplitPane pane)
          Determines the current location of the divider.
abstract  int getMaximumDividerLocation(JSplitPane pane)
          Determines the maximum location of the divider.
abstract  int getMinimumDividerLocation(JSplitPane pane)
          Determines the minimum location of the divider.
abstract  void resetToPreferredSizes(JSplitPane pane)
          Moves the divider to the location which best respects the preferred sizes of the children.
abstract  void setDividerLocation(JSplitPane pane, int location)
          Moves the divider to the specified location.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitPaneUI

public SplitPaneUI()
Constructs a new SplitPaneUI.

Method Detail

resetToPreferredSizes

public abstract void resetToPreferredSizes(JSplitPane pane)
Moves the divider to the location which best respects the preferred sizes of the children.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.

setDividerLocation

public abstract void setDividerLocation(JSplitPane pane,
                                        int location)
Moves the divider to the specified location.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.
location - the new location of the divider.

getDividerLocation

public abstract int getDividerLocation(JSplitPane pane)
Determines the current location of the divider.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.
Returns:
the current location of the divider.

getMinimumDividerLocation

public abstract int getMinimumDividerLocation(JSplitPane pane)
Determines the minimum location of the divider.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.
Returns:
the leftmost (or topmost) possible location of the divider.

getMaximumDividerLocation

public abstract int getMaximumDividerLocation(JSplitPane pane)
Determines the maximum location of the divider.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.
Returns:
the bottommost (or rightmost) possible location of the divider.

finishedPaintingChildren

public abstract void finishedPaintingChildren(JSplitPane pane,
                                              Graphics g)
Called by the JSplitPane after it has finished painting its children.

Parameters:
pane - the JSplitPane for thich this delegate provides the look and feel.
g - the Graphics used for painting.