public class BasicSplitPaneDivider extends Container implements PropertyChangeListener
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4版本起,支持所有JavaBeans的长期存储已添加到java.beans
包中。 请参阅XMLEncoder
。
Modifier and Type | Class and Description |
---|---|
protected class |
BasicSplitPaneDivider.DividerLayout
用于布局
BasicSplitPaneDivider 。
|
protected class |
BasicSplitPaneDivider.DragController
在针对HORIZONTAL_SPLIT的拆分窗格的拖动会话期间处理事件。
|
protected class |
BasicSplitPaneDivider.MouseHandler
MouseHandler负责将鼠标事件(释放,拖动...)转换为适当的DragController方法。
|
protected class |
BasicSplitPaneDivider.VerticalDragController
在VERTICAL_SPLIT面向拆分窗格的拖动会话期间处理事件。
|
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected int |
dividerSize
分隔线的尺寸
|
protected BasicSplitPaneDivider.DragController |
dragger
处理鼠标拖动消息来做实际拖动。
|
protected Component |
hiddenDivider
用于非连续布局模式的分隔线。
|
protected JButton |
leftButton
用于快速切换左组件的按钮。
|
protected BasicSplitPaneDivider.MouseHandler |
mouseHandler
处理来自这个类和拆分窗格的鼠标事件。
|
protected static int |
ONE_TOUCH_OFFSET |
protected static int |
ONE_TOUCH_SIZE
基于方向的分割器的宽度或高度BasicSplitPaneUI为此添加了两个。
|
protected int |
orientation
JSplitPane的方向。
|
protected JButton |
rightButton
按钮快速切换正确的组件。
|
protected JSplitPane |
splitPane
JSplitPane包含接收器。
|
protected BasicSplitPaneUI |
splitPaneUI
这个实例是从这个UI创建的。
|
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
BasicSplitPaneDivider(BasicSplitPaneUI ui)
创建BasicSplitPaneDivider的实例。
|
Modifier and Type | Method and Description |
---|---|
protected JButton |
createLeftOneTouchButton()
创建并返回可用于折叠拆分窗格中左侧组件的JButton实例。
|
protected JButton |
createRightOneTouchButton()
创建并返回可用于折叠拆分窗格中正确组件的JButton实例。
|
protected void |
dragDividerTo(int location)
消息的BasicSplitPaneUI与dragDividerTo该实例包含在。
|
protected void |
finishDraggingTo(int location)
消息的BasicSplitPaneUI与finishDraggingTo该实例包含在。
|
BasicSplitPaneUI |
getBasicSplitPaneUI()
返回
SplitPaneUI 目前接收器在不在。
|
Border |
getBorder()
返回此组件的边框,如果当前未设置边框,则返回null。
|
int |
getDividerSize()
返回分隔符的大小,即分割窗口为HORIZONTAL_SPLIT时的宽度,或VERTICAL_SPLIT的高度。
|
Insets |
getInsets()
如果在此组件上设置了边框,则返回边框的插入,否则调用super.getInsets。
|
Dimension |
getMinimumSize()
返回dividerSize x dividerSize
|
Dimension |
getPreferredSize()
返回dividerSize x dividerSize
|
boolean |
isMouseOver()
返回鼠标是否在分隔线上
|
protected void |
oneTouchExpandableChanged()
当JSplitPane的oneTouchExpandable值接收器包含在更改中时发生消息。
|
void |
paint(Graphics g)
涂抹分隔线。
|
protected void |
prepareForDragging()
消息准备拖动。
|
void |
propertyChange(PropertyChangeEvent e)
属性更改事件(可能来自JSplitPane)将在必要时发送updateOrientation消息。
|
void |
setBasicSplitPaneUI(BasicSplitPaneUI newUI)
设置正在使用接收器的SplitPaneUI。
|
void |
setBorder(Border border)
设置此组件的边框。
|
void |
setDividerSize(int newSize)
将分频器的大小设置为
newSize 。
|
protected void |
setMouseOver(boolean mouseOver)
设置鼠标是否在分隔线上。
|
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, validateTree
action, 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, transferFocusUpCycle
protected 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
目前接收器在不在。
public void setDividerSize(int newSize)
newSize
。
那就是宽度如果分裂的是HORIZONTAL_SPLIT
,或者高度是VERTICAL_SPLIT
。
public int getDividerSize()
public void setBorder(Border border)
public Border getBorder()
setBorder(javax.swing.border.Border)
public Insets getInsets()
getInsets
在
Container
类
setBorder(javax.swing.border.Border)
protected void setMouseOver(boolean mouseOver)
mouseOver
- 鼠标当前是否超过分频器
public boolean isMouseOver()
public Dimension getPreferredSize()
getPreferredSize
在
Container
类
Dimension
此容器的首选大小的Dimension的实例。
Container.getMinimumSize()
,
Container.getMaximumSize()
,
Container.getLayout()
,
LayoutManager.preferredLayoutSize(Container)
,
Component.getPreferredSize()
public Dimension getMinimumSize()
getMinimumSize
在
Container
Dimension
此容器的最小大小的Dimension的实例。
Container.getPreferredSize()
,
Container.getMaximumSize()
,
Container.getLayout()
,
LayoutManager.minimumLayoutSize(Container)
,
Component.getMinimumSize()
public void propertyChange(PropertyChangeEvent e)
propertyChange
在界面
PropertyChangeListener
e
- 描述事件源和已更改的属性的PropertyChangeEvent对象。
public void paint(Graphics g)
paint
在
Container
类
g
- 指定的图形窗口
Component.update(Graphics)
protected void oneTouchExpandableChanged()
leftButton
和rightButton
如果它们为空)。
也使接收器无效。
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, 2014, Oracle and/or its affiliates. All rights reserved.