public class BasicSplitPaneUI extends javax.swing.plaf.SplitPaneUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicSplitPaneUI.BasicHorizontalLayoutManager
This Layout Manager controls the position and size of the components when
the JSplitPane's orientation is HORIZONTAL_SPLIT.
|
class |
BasicSplitPaneUI.BasicVerticalLayoutManager
This class is the Layout Manager for the JSplitPane when the orientation
is VERTICAL_SPLIT.
|
class |
BasicSplitPaneUI.FocusHandler
This class handles FocusEvents from the JComponent.
|
class |
BasicSplitPaneUI.KeyboardDownRightHandler
This is a deprecated class.
|
class |
BasicSplitPaneUI.KeyboardEndHandler
This is a deprecated class.
|
class |
BasicSplitPaneUI.KeyboardHomeHandler
This is a deprecated class.
|
class |
BasicSplitPaneUI.KeyboardResizeToggleHandler
This is a deprecated class.
|
class |
BasicSplitPaneUI.KeyboardUpLeftHandler
This is a deprecated class.
|
class |
BasicSplitPaneUI.PropertyHandler
This helper class handles PropertyChangeEvents from the JSplitPane.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
beginDragDividerLocation
The location of the divider when dragging began.
|
protected BasicSplitPaneDivider |
divider
The divider that divides this JSplitPane.
|
protected javax.swing.KeyStroke |
dividerResizeToggleKey
Deprecated.
The divider resize toggle key.
|
protected int |
dividerSize
The size of the divider while dragging.
|
protected javax.swing.KeyStroke |
downKey
Deprecated.
The down key.
|
protected boolean |
draggingHW
Set to true when dragging heavy weight components.
|
protected javax.swing.KeyStroke |
endKey
Deprecated.
The end key.
|
protected java.awt.event.FocusListener |
focusListener
The JSplitPane's focus handler.
|
protected javax.swing.KeyStroke |
homeKey
Deprecated.
The home key.
|
protected static int |
KEYBOARD_DIVIDER_MOVE_OFFSET
The distance the divider is moved when moved by keyboard actions.
|
protected java.awt.event.ActionListener |
keyboardDownRightListener
Deprecated.
The handler for down and right key presses.
|
protected java.awt.event.ActionListener |
keyboardEndListener
Deprecated.
The handler for end key presses.
|
protected java.awt.event.ActionListener |
keyboardHomeListener
Deprecated.
The handler for home key presses.
|
protected java.awt.event.ActionListener |
keyboardResizeToggleListener
Deprecated.
The handler for toggling resizes.
|
protected java.awt.event.ActionListener |
keyboardUpLeftListener
Deprecated.
The handler for up and left key presses.
|
protected BasicSplitPaneUI.BasicHorizontalLayoutManager |
layoutManager
The JSplitPane's current layout manager.
|
protected javax.swing.KeyStroke |
leftKey
Deprecated.
The left key.
|
protected static java.lang.String |
NON_CONTINUOUS_DIVIDER
The constraints object used when adding the non-continuous divider to the
JSplitPane.
|
protected java.awt.Component |
nonContinuousLayoutDivider
The dark divider used when dragging in non-continuous layout mode.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener
The listener that listens for PropertyChangeEvents from the JSplitPane.
|
protected javax.swing.KeyStroke |
rightKey
Deprecated.
The right key.
|
protected javax.swing.JSplitPane |
splitPane
The JSplitPane that this UI draws.
|
protected javax.swing.KeyStroke |
upKey
Deprecated.
The up key.
|
| Constructor and Description |
|---|
BasicSplitPaneUI()
Creates a new BasicSplitPaneUI object.
|
| Modifier and Type | Method and Description |
|---|---|
BasicSplitPaneDivider |
createDefaultDivider()
This method creates the divider used normally with the JSplitPane.
|
protected java.awt.Component |
createDefaultNonContinuousLayoutDivider()
This method creates a nonContinuousLayoutDivider for use with the
JSplitPane in nonContinousLayout mode.
|
protected java.awt.event.FocusListener |
createFocusListener()
This method creates a new FocusListener.
|
protected java.awt.event.ActionListener |
createKeyboardDownRightListener()
Deprecated.
1.3
|
protected java.awt.event.ActionListener |
createKeyboardEndListener()
Deprecated.
1.3
|
protected java.awt.event.ActionListener |
createKeyboardHomeListener()
Deprecated.
|
protected java.awt.event.ActionListener |
createKeyboardResizeToggleListener()
Deprecated.
1.3
|
protected java.awt.event.ActionListener |
createKeyboardUpLeftListener()
Deprecated.
1.3
|
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
This method creates a new PropertyChangeListener.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x)
This method creates a new BasicSplitPaneUI for the given JComponent.
|
protected void |
dragDividerTo(int location)
This method is called whenever the divider is dragged.
|
protected void |
finishDraggingTo(int location)
This method is called when the dragging is finished.
|
void |
finishedPaintingChildren(javax.swing.JSplitPane jc,
java.awt.Graphics g)
This method is called after the children of the JSplitPane are painted.
|
BasicSplitPaneDivider |
getDivider()
This method returns the BasicSplitPaneDivider that divides this
JSplitPane.
|
protected int |
getDividerBorderSize()
Deprecated.
1.3
|
int |
getDividerLocation(javax.swing.JSplitPane jc)
This method returns the location of the divider.
|
java.awt.Insets |
getInsets(javax.swing.JComponent jc)
This method returns the border insets of the current border.
|
int |
getLastDragLocation()
This method returns the last location the divider was dragged to.
|
int |
getMaximumDividerLocation(javax.swing.JSplitPane jc)
This method returns the largest value possible for the location of the
divider.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent jc)
This method returns the maximum size of the JSplitPane.
|
int |
getMinimumDividerLocation(javax.swing.JSplitPane jc)
This method returns the smallest value possible for the location of the
divider.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent jc)
This method returns the minimum size of the JSplitPane.
|
java.awt.Component |
getNonContinuousLayoutDivider()
This method returns the nonContinuousLayoutDivider.
|
int |
getOrientation()
This method returns the orientation of the JSplitPane.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent jc)
This method returns the preferred size of the JSplitPane.
|
javax.swing.JSplitPane |
getSplitPane()
This method returns the JSplitPane that this BasicSplitPaneUI draws.
|
protected void |
installDefaults()
This method installs the defaults given by the Look and Feel.
|
protected void |
installKeyboardActions()
Installs any keyboard actions.
|
protected void |
installListeners()
This method installs the listeners needed for this UI to function.
|
void |
installUI(javax.swing.JComponent c)
This method installs the BasicSplitPaneUI for the given JComponent.
|
boolean |
isContinuousLayout()
This method returns true if the JSplitPane is using continuous layout.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent jc)
This method is called to paint the JSplitPane.
|
protected void |
resetLayoutManager()
This method resets the current layout manager.
|
void |
resetToPreferredSizes(javax.swing.JSplitPane jc)
This method is called when JSplitPane's resetToPreferredSizes is called.
|
void |
setContinuousLayout(boolean b)
This method sets the continuous layout property of the JSplitPane.
|
void |
setDividerLocation(javax.swing.JSplitPane jc,
int location)
This method sets the location of the divider.
|
void |
setLastDragLocation(int l)
This method sets the last location the divider was dragged to.
|
protected void |
setNonContinuousLayoutDivider(java.awt.Component newDivider)
This method sets the component to use as the nonContinuousLayoutDivider.
|
protected void |
setNonContinuousLayoutDivider(java.awt.Component newDivider,
boolean rememberSizes)
This method sets the component to use as the nonContinuousLayoutDivider.
|
void |
setOrientation(int orientation)
This method sets the orientation of the JSplitPane.
|
protected void |
startDragging()
This method is called when dragging starts.
|
protected void |
uninstallDefaults()
This method uninstalls the defaults and nulls any objects created during
install.
|
protected void |
uninstallKeyboardActions()
This method reverses the work done in installKeyboardActions.
|
protected void |
uninstallListeners()
This method uninstalls all listeners registered for the UI.
|
void |
uninstallUI(javax.swing.JComponent c)
This method uninstalls the BasicSplitPaneUI for the given JComponent.
|
protected int beginDragDividerLocation
protected int dividerSize
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
protected BasicSplitPaneDivider divider
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.awt.event.FocusListener focusListener
protected java.awt.event.ActionListener keyboardDownRightListener
protected java.awt.event.ActionListener keyboardEndListener
protected java.awt.event.ActionListener keyboardHomeListener
protected java.awt.event.ActionListener keyboardResizeToggleListener
protected java.awt.event.ActionListener keyboardUpLeftListener
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
protected javax.swing.KeyStroke dividerResizeToggleKey
protected javax.swing.KeyStroke downKey
protected javax.swing.KeyStroke endKey
protected javax.swing.KeyStroke homeKey
protected javax.swing.KeyStroke leftKey
protected javax.swing.KeyStroke rightKey
protected javax.swing.KeyStroke upKey
protected boolean draggingHW
protected static final java.lang.String NON_CONTINUOUS_DIVIDER
protected java.awt.Component nonContinuousLayoutDivider
protected javax.swing.JSplitPane splitPane
public BasicSplitPaneUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
x - The JComponent to create a UI for.public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.ComponentUIc - The JComponent to install the UI for.ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.ComponentUIc - The JComponent to uninstall the UI for.ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected void uninstallListeners()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected java.beans.PropertyChangeListener createPropertyChangeListener()
protected java.awt.event.FocusListener createFocusListener()
protected java.awt.event.ActionListener createKeyboardUpLeftListener()
protected java.awt.event.ActionListener createKeyboardDownRightListener()
protected java.awt.event.ActionListener createKeyboardHomeListener()
protected java.awt.event.ActionListener createKeyboardEndListener()
protected java.awt.event.ActionListener createKeyboardResizeToggleListener()
public int getOrientation()
public void setOrientation(int orientation)
orientation - The new orientation of the JSplitPane.public boolean isContinuousLayout()
public void setContinuousLayout(boolean b)
b - True if the JsplitPane is to use continuous layout.public int getLastDragLocation()
public void setLastDragLocation(int l)
l - The last location the divider was dragged to.public BasicSplitPaneDivider getDivider()
protected java.awt.Component createDefaultNonContinuousLayoutDivider()
protected void setNonContinuousLayoutDivider(java.awt.Component newDivider)
newDivider - The component to use as the nonContinuousLayoutDivider.protected void setNonContinuousLayoutDivider(java.awt.Component newDivider, boolean rememberSizes)
newDivider - The component to use as the nonContinuousLayoutDivider.rememberSizes - FIXME: document.public java.awt.Component getNonContinuousLayoutDivider()
public javax.swing.JSplitPane getSplitPane()
public BasicSplitPaneDivider createDefaultDivider()
public void resetToPreferredSizes(javax.swing.JSplitPane jc)
resetToPreferredSizes in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane to reset.public void setDividerLocation(javax.swing.JSplitPane jc, int location)
setDividerLocation in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane to set the divider location in.location - The new location of the divider.public int getDividerLocation(javax.swing.JSplitPane jc)
getDividerLocation in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane to retrieve the location for.public int getMinimumDividerLocation(javax.swing.JSplitPane jc)
getMinimumDividerLocation in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane.public int getMaximumDividerLocation(javax.swing.JSplitPane jc)
getMaximumDividerLocation in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane.public void finishedPaintingChildren(javax.swing.JSplitPane jc, java.awt.Graphics g)
finishedPaintingChildren in class javax.swing.plaf.SplitPaneUIjc - The JSplitPane.g - The Graphics object to paint with.public void paint(java.awt.Graphics g, javax.swing.JComponent jc)
paint in class javax.swing.plaf.ComponentUIg - The Graphics object to paint with.jc - The JSplitPane to paint.public java.awt.Dimension getPreferredSize(javax.swing.JComponent jc)
getPreferredSize in class javax.swing.plaf.ComponentUIjc - The JSplitPane.public java.awt.Dimension getMinimumSize(javax.swing.JComponent jc)
getMinimumSize in class javax.swing.plaf.ComponentUIjc - The JSplitPane.public java.awt.Dimension getMaximumSize(javax.swing.JComponent jc)
getMaximumSize in class javax.swing.plaf.ComponentUIjc - The JSplitPane.public java.awt.Insets getInsets(javax.swing.JComponent jc)
jc - The JSplitPane.protected void resetLayoutManager()
protected void startDragging()
protected void dragDividerTo(int location)
location - The new location of the divider.protected void finishDraggingTo(int location)
location - The location where the drag finished.protected int getDividerBorderSize()