public class BasicSplitPaneDivider extends Container implements PropertyChangeListener
 Warning:
 Serialized objects of this class will not be compatible with
 future Swing releases. The current serialization support is
 appropriate for short term storage or RMI between applications running
 the same version of Swing.  As of 1.4, support for long term storage
 of all JavaBeans™
 has been added to the java.beans package.
 Please see XMLEncoder.
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | BasicSplitPaneDivider.DividerLayoutUsed to layout a  BasicSplitPaneDivider. | 
| protected class  | BasicSplitPaneDivider.DragControllerHandles the events during a dragging session for a
 HORIZONTAL_SPLIT oriented split pane. | 
| protected class  | BasicSplitPaneDivider.MouseHandlerMouseHandler is responsible for converting mouse events
 (released, dragged...) into the appropriate DragController
 methods. | 
| protected class  | BasicSplitPaneDivider.VerticalDragControllerHandles the events during a dragging session for a
 VERTICAL_SPLIT oriented split pane. | 
Container.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description | 
|---|---|
| protected int | dividerSizeSize of the divider. | 
| protected BasicSplitPaneDivider.DragController | draggerHandles mouse dragging message to do the actual dragging. | 
| protected Component | hiddenDividerDivider that is used for noncontinuous layout mode. | 
| protected JButton | leftButtonButton for quickly toggling the left component. | 
| protected BasicSplitPaneDivider.MouseHandler | mouseHandlerHandles mouse events from both this class, and the split pane. | 
| protected static int | ONE_TOUCH_OFFSET | 
| protected static int | ONE_TOUCH_SIZEWidth or height of the divider based on orientation
 BasicSplitPaneUI adds two to this. | 
| protected int | orientationOrientation of the JSplitPane. | 
| protected JButton | rightButtonButton for quickly toggling the right component. | 
| protected JSplitPane | splitPaneJSplitPane the receiver is contained in. | 
| protected BasicSplitPaneUI | splitPaneUIUI this instance was created from. | 
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | 
|---|
| BasicSplitPaneDivider(BasicSplitPaneUI ui)Creates an instance of BasicSplitPaneDivider. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JButton | createLeftOneTouchButton()Creates and return an instance of JButton that can be used to
 collapse the left component in the split pane. | 
| protected JButton | createRightOneTouchButton()Creates and return an instance of JButton that can be used to
 collapse the right component in the split pane. | 
| protected void | dragDividerTo(int location)Messages the BasicSplitPaneUI with dragDividerTo that this instance
 is contained in. | 
| protected void | finishDraggingTo(int location)Messages the BasicSplitPaneUI with finishDraggingTo that this instance
 is contained in. | 
| BasicSplitPaneUI | getBasicSplitPaneUI()Returns the  SplitPaneUIthe receiver is currently
 in. | 
| Border | getBorder()Returns the border of this component or null if no border is
 currently set. | 
| int | getDividerSize()Returns the size of the divider, that is the width if the splitpane
 is HORIZONTAL_SPLIT, or the height of VERTICAL_SPLIT. | 
| Insets | getInsets()If a border has been set on this component, returns the
 border's insets, else calls super.getInsets. | 
| Dimension | getMinimumSize()Returns dividerSize x dividerSize | 
| Dimension | getPreferredSize()Returns dividerSize x dividerSize | 
| boolean | isMouseOver()Returns whether or not the mouse is currently over the divider | 
| protected void | oneTouchExpandableChanged()Messaged when the oneTouchExpandable value of the JSplitPane the
 receiver is contained in changes. | 
| void | paint(Graphics g)Paints the divider. | 
| protected void | prepareForDragging()Message to prepare for dragging. | 
| void | propertyChange(PropertyChangeEvent e)Property change event, presumably from the JSplitPane, will message
 updateOrientation if necessary. | 
| void | setBasicSplitPaneUI(BasicSplitPaneUI newUI)Sets the SplitPaneUI that is using the receiver. | 
| void | setBorder(Border border)Sets the border of this component. | 
| void | setDividerSize(int newSize)Sets the size of the divider to  newSize. | 
| protected void | setMouseOver(boolean mouseOver)Sets whether or not the mouse is currently over the divider. | 
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected static final int ONE_TOUCH_SIZE
protected static final int ONE_TOUCH_OFFSET
protected BasicSplitPaneDivider.DragController dragger
protected BasicSplitPaneUI splitPaneUI
protected int dividerSize
protected Component hiddenDivider
protected JSplitPane splitPane
protected BasicSplitPaneDivider.MouseHandler mouseHandler
protected int orientation
protected JButton leftButton
protected JButton rightButton
public BasicSplitPaneDivider(BasicSplitPaneUI ui)
public void setBasicSplitPaneUI(BasicSplitPaneUI newUI)
public BasicSplitPaneUI getBasicSplitPaneUI()
SplitPaneUI the receiver is currently
 in.public void setDividerSize(int newSize)
newSize. That is
 the width if the splitpane is HORIZONTAL_SPLIT, or
 the height of VERTICAL_SPLIT.public int getDividerSize()
public void setBorder(Border border)
public Border getBorder()
setBorder(javax.swing.border.Border)public Insets getInsets()
getInsets in class ContainersetBorder(javax.swing.border.Border)protected void setMouseOver(boolean mouseOver)
mouseOver - whether or not the mouse is currently over the dividerpublic boolean isMouseOver()
public Dimension getPreferredSize()
getPreferredSize in class ContainerDimension that represents
                the preferred size of this container.Container.getMinimumSize(), 
Container.getMaximumSize(), 
Container.getLayout(), 
LayoutManager.preferredLayoutSize(Container), 
Component.getPreferredSize()public Dimension getMinimumSize()
getMinimumSize in class ContainerDimension that represents
                the minimum size of this container.Container.getPreferredSize(), 
Container.getMaximumSize(), 
Container.getLayout(), 
LayoutManager.minimumLayoutSize(Container), 
Component.getMinimumSize()public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - A PropertyChangeEvent object describing the event source
          and the property that has changed.public void paint(Graphics g)
paint in class Containerg - the specified Graphics windowComponent.update(Graphics)protected void oneTouchExpandableChanged()
leftButton and rightButton if they
 are null. invalidates the receiver as well.protected JButton createLeftOneTouchButton()
protected JButton createRightOneTouchButton()
protected void prepareForDragging()
protected void dragDividerTo(int location)
protected void finishDraggingTo(int location)
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.