public class BasicSplitPaneUI extends SplitPaneUI
| Modifier and Type | Class and Description |
|---|---|
class |
BasicSplitPaneUI
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT.
|
class |
BasicSplitPaneUI
LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT.
|
class |
BasicSplitPaneUI
Implementation of the FocusListener that the JSplitPane UI uses.
|
class |
BasicSplitPaneUI
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
|
class |
BasicSplitPaneUI
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
|
class |
BasicSplitPaneUI
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
|
class |
BasicSplitPaneUI
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
|
class |
BasicSplitPaneUI
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses.
|
class |
BasicSplitPaneUI
Implementation of the PropertyChangeListener that the JSplitPane UI uses.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
beginDragDividerLocation
Location of the divider when the dragging session began.
|
protected BasicSplitPaneDivider |
divider
Instance of the divider for this JSplitPane.
|
protected KeyStroke |
dividerResizeToggleKey
Deprecated.
As of Java 2 platform v1.3.
|
protected int |
dividerSize
The size of the divider while the dragging session is valid.
|
protected KeyStroke |
downKey
Deprecated.
As of Java 2 platform v1.3.
|
protected boolean |
draggingHW
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights.
|
protected KeyStroke |
endKey
Deprecated.
As of Java 2 platform v1.3.
|
protected FocusListener |
focusListener
Instance of the FocusListener for this JSplitPane.
|
protected KeyStroke |
homeKey
Deprecated.
As of Java 2 platform v1.3.
|
protected static int |
KEYBOARD_DIVIDER_MOVE_OFFSET
How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard.
|
protected ActionListener |
keyboardDownRightListener
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
keyboardEndListener
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
keyboardHomeListener
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
keyboardResizeToggleListener
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
keyboardUpLeftListener
Deprecated.
As of Java 2 platform v1.3.
|
protected BasicSplitPaneUI |
layoutManager
LayoutManager that is created and placed into the split pane.
|
protected KeyStroke |
leftKey
Deprecated.
As of Java 2 platform v1.3.
|
protected static String |
NON_CONTINUOUS_DIVIDER
The divider used for non-continuous layout is added to the split pane with this object.
|
protected Component |
nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used.
|
protected PropertyChangeListener |
propertyChangeListener
Instance of the PropertyChangeListener for this JSplitPane.
|
protected KeyStroke |
rightKey
Deprecated.
As of Java 2 platform v1.3.
|
protected JSplitPane |
splitPane
JSplitPane instance this instance is providing the look and feel for.
|
protected KeyStroke |
upKey
Deprecated.
As of Java 2 platform v1.3.
|
| Constructor and Description |
|---|
BasicSplitPaneUI()
|
| Modifier and Type | Method and Description |
|---|---|
BasicSplitPaneDivider |
createDefaultDivider()
Creates the default divider.
|
protected Component |
createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instance of
Canvas that fills in the background with dark gray.
|
protected FocusListener |
createFocusListener()
Creates a FocusListener for the JSplitPane UI.
|
protected ActionListener |
createKeyboardDownRightListener()
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
createKeyboardEndListener()
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
createKeyboardHomeListener()
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
createKeyboardResizeToggleListener()
Deprecated.
As of Java 2 platform v1.3.
|
protected ActionListener |
createKeyboardUpLeftListener()
Deprecated.
As of Java 2 platform v1.3.
|
protected PropertyChangeListener |
createPropertyChangeListener()
Creates a PropertyChangeListener for the JSplitPane UI.
|
static ComponentUI |
createUI(JComponent
Creates a new BasicSplitPaneUI instance
|
protected void |
dragDividerTo(int location)
Messaged during a dragging session to move the divider to the passed in location.
|
protected void |
finishDraggingTo(int location)
Messaged to finish the dragging session.
|
void |
finishedPaintingChildren(JSplitPane
Called when the specified split pane has finished painting its children.
|
BasicSplitPaneDivider |
getDivider()
Returns the divider between the top Components.
|
protected int |
getDividerBorderSize()
Deprecated.
As of Java 2 platform v1.3, instead set the border on the divider.
|
int |
getDividerLocation(JSplitPane
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is.
|
Insets |
getInsets(JComponent
Returns the insets.
|
int |
getLastDragLocation()
Returns the last drag location of the JSplitPane.
|
int |
getMaximumDividerLocation(JSplitPane
Gets the maximum location of the divider.
|
Dimension |
getMaximumSize(JComponent
Returns the maximum size for the passed in component, This is passed off to the current layout manager.
|
int |
getMinimumDividerLocation(JSplitPane
Gets the minimum location of the divider.
|
Dimension |
getMinimumSize(JComponent
Returns the minimum size for the passed in component, This is passed off to the current layout manager.
|
Component |
getNonContinuousLayoutDivider()
Returns the divider to use when the splitPane is configured to not continuously layout.
|
int |
getOrientation()
Returns the orientation for the JSplitPane.
|
Dimension |
getPreferredSize(JComponent
Returns the preferred size for the passed in component, This is passed off to the current layout manager.
|
JSplitPane |
getSplitPane()
Returns the splitpane this instance is currently contained in.
|
protected void |
installDefaults()
Installs the UI defaults.
|
protected void |
installKeyboardActions()
Installs the keyboard actions for the UI.
|
protected void |
installListeners()
Installs the event listeners for the UI.
|
void |
installUI(JComponent
Installs the UI.
|
boolean |
isContinuousLayout()
Determines whether the JSplitPane is set to use a continuous layout.
|
void |
paint(Graphics
Paints the specified component appropriately for the look and feel.
|
protected void |
resetLayoutManager()
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components.
|
void |
resetToPreferredSizes(JSplitPane
Messaged to reset the preferred sizes.
|
void |
setContinuousLayout(boolean b)
Turn continuous layout on/off.
|
void |
setDividerLocation(JSplitPane
Sets the location of the divider to location.
|
void |
setLastDragLocation(int l)
Set the last drag location of the JSplitPane.
|
protected void |
setNonContinuousLayoutDivider(Component
Sets the divider to use when the splitPane is configured to not continuously layout.
|
protected void |
setNonContinuousLayoutDivider(Component
Sets the divider to use.
|
void |
setOrientation(int orientation)
Set the orientation for the JSplitPane.
|
protected void |
startDragging()
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize.
|
protected void |
uninstallDefaults()
Uninstalls the UI defaults.
|
protected void |
uninstallKeyboardActions()
Uninstalls the keyboard actions for the UI.
|
protected void |
uninstallListeners()
Uninstalls the event listeners for the UI.
|
void |
uninstallUI(JComponent
Uninstalls the UI.
|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, updateprotected static final StringNON_CONTINUOUS_DIVIDER
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
protected JSplitPanesplitPane
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
protected BasicSplitPaneDividerdivider
protected PropertyChangeListenerpropertyChangeListener
protected FocusListenerfocusListener
protected int dividerSize
protected ComponentnonContinuousLayoutDivider
protected boolean draggingHW
protected int beginDragDividerLocation
@Deprecated protected KeyStrokeupKey
@Deprecated protected KeyStrokedownKey
@Deprecated protected KeyStrokeleftKey
@Deprecated protected KeyStrokerightKey
@Deprecated protected KeyStrokehomeKey
@Deprecated protected KeyStrokeendKey
@Deprecated protected KeyStrokedividerResizeToggleKey
@Deprecated protected ActionListenerkeyboardUpLeftListener
@Deprecated protected ActionListenerkeyboardDownRightListener
@Deprecated protected ActionListenerkeyboardHomeListener
@Deprecated protected ActionListenerkeyboardEndListener
@Deprecated protected ActionListenerkeyboardResizeToggleListener
public static ComponentUIcreateUI(JComponent x)
public void installUI(JComponentc)
installUI in class
ComponentUI
c - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponentc)
uninstallUI in class
ComponentUI
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected PropertyChangeListenercreatePropertyChangeListener()
protected FocusListenercreateFocusListener()
@Deprecated protected ActionListenercreateKeyboardUpLeftListener()
installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListenercreateKeyboardDownRightListener()
installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListenercreateKeyboardHomeListener()
installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListenercreateKeyboardEndListener()
installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListenercreateKeyboardResizeToggleListener()
installKeyboardActions and placing the Action in the SplitPane's ActionMap. Please refer to the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
public int getOrientation()
public void setOrientation(int orientation)
public boolean isContinuousLayout()
public void setContinuousLayout(boolean b)
public int getLastDragLocation()
public void setLastDragLocation(int l)
public BasicSplitPaneDividergetDivider()
protected ComponentcreateDefaultNonContinuousLayoutDivider()
Canvas that fills in the background with dark gray.
protected void setNonContinuousLayoutDivider(ComponentnewDivider)
protected void setNonContinuousLayoutDivider(ComponentnewDivider, boolean rememberSizes)
public ComponentgetNonContinuousLayoutDivider()
public JSplitPanegetSplitPane()
public BasicSplitPaneDividercreateDefaultDivider()
public void resetToPreferredSizes(JSplitPanejc)
public void setDividerLocation(JSplitPanejc, int location)
public int getDividerLocation(JSplitPanejc)
public int getMinimumDividerLocation(JSplitPanejc)
public int getMaximumDividerLocation(JSplitPanejc)
public void finishedPaintingChildren(JSplitPanesp, Graphics g)
public void paint(Graphicsg, JComponent jc)
ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified
Graphics object to render the content of the component.
paint in class
ComponentUI
g - the
Graphics context in which to paint
jc - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public DimensiongetPreferredSize(JComponent jc)
getPreferredSize in class
ComponentUI
jc - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensiongetMinimumSize(JComponent jc)
getMinimumSize in class
ComponentUI
jc - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Dimension object or
null
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public DimensiongetMaximumSize(JComponent jc)
getMaximumSize in class
ComponentUI
jc - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Dimension object or
null
JComponent.getMaximumSize() ,
LayoutManager2.maximumLayoutSize(java.awt.Container)
public InsetsgetInsets(JComponent jc)
protected void resetLayoutManager()
protected void startDragging()
protected void dragDividerTo(int location)
protected void finishDraggingTo(int location)
@Deprecated protected int getDividerBorderSize()
Returns the width of one side of the divider border.