|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Object java.awt.Component java.awt.Container javax.swing.plaf.basic.BasicSplitPaneDivider
public class BasicSplitPaneDivider
BasicSplitPaneUI ʹ�õķָ������������ϣ����д paint �Խ���ijЩ����Ȥ�IJ������߿�Ч������ BasicSplitPaneUI �л��Ƶģ����������ϲ���ñ߿������������á�Ҫ�������ش�ijЩ�����϶�����Ϊ mousePressed �������ಢ��ϣ����ʼ�϶�ʱ���� super��
���棺��������л��������Ժ�� Swing �汾�����ݡ���ǰ�����л�֧�������ڶ��ڴ洢��������ͬ Swing �汾��Ӧ�ó���֮��� RMI���� 1.4 �汾��ʼ������ java.beans
����������֧������ JavaBeansTM ���ڴ洢�Ĺ��ܡ���μ� XMLEncoder
��
Ƕ����ժҪ | |
---|---|
protected class |
BasicSplitPaneDivider.DividerLayout
���ڲ��� BasicSplitPaneDivider �� |
protected class |
BasicSplitPaneDivider.DragController
������ HORIZONTAL_SPLIT �IJ�ִ�����϶��Ự�ڼ䴦���¼��� |
protected class |
BasicSplitPaneDivider.MouseHandler
MouseHandler ��������¼����ͷš��϶�������ת��Ϊ�ʵ��� DragController ������ |
protected class |
BasicSplitPaneDivider.VerticalDragController
������ VERTICAL_SPLIT �IJ�ִ�����϶��Ự�ڼ䴦���¼��� |
���� java.awt.Container �̳е�Ƕ����/�ӿ� |
---|
Container.AccessibleAWTContainer |
���� java.awt.Component �̳е�Ƕ����/�ӿ� |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
�ֶ�ժҪ | |
---|---|
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�� |
���� java.awt.Component �̳е��ֶ� |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
�ӽӿ� java.awt.image.ImageObserver �̳е��ֶ� |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
���췽��ժҪ | |
---|---|
BasicSplitPaneDivider(BasicSplitPaneUI ui)
���� BasicSplitPaneDivider ��ʵ���� |
����ժҪ | |
---|---|
protected JButton |
createLeftOneTouchButton()
���������� JButton ��ʵ������ʵ���������۵���ִ����е��������� |
protected JButton |
createRightOneTouchButton()
���������� JButton ��ʵ������ʵ���������۵���ִ����е��ұ������ |
protected void |
dragDividerTo(int location)
���ð�����ʵ���� dragDividerTo ���� BasicSplitPaneUI ����Ϣ�� |
protected void |
finishDraggingTo(int location)
���ð�����ʵ���� finishDraggingTo ���� BasicSplitPaneUI ����Ϣ�� |
BasicSplitPaneUI |
getBasicSplitPaneUI()
���ؽ����ߵ�ǰλ�����е� SplitPaneUI �� |
Border |
getBorder()
���ش�����ı߿������ǰû�����ñ߿��� null�� |
int |
getDividerSize()
���طָ����Ĵ�С�� |
Insets |
getInsets()
������ڴ�����������˱߿��ظñ߿�� insets��������� 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)
������굱ǰ�Ƿ�λ�ڷָ����ϡ� |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
�ֶ���ϸ��Ϣ |
---|
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()
Container
�е� getInsets
setBorder(javax.swing.border.Border)
protected void setMouseOver(boolean mouseOver)
mouseOver
- ��굱ǰ�Ƿ�λ�ڷָ�����public boolean isMouseOver()
public Dimension getPreferredSize()
Container
�е� getPreferredSize
Dimension
ʵ����Container.getMinimumSize()
,
Container.getMaximumSize()
,
Container.getLayout()
,
LayoutManager.preferredLayoutSize(Container)
,
Component.getPreferredSize()
public Dimension getMinimumSize()
Container
�е� getMinimumSize
Dimension
ʵ����Container.getPreferredSize()
,
Container.getMaximumSize()
,
Container.getLayout()
,
LayoutManager.minimumLayoutSize(Container)
,
Component.getMinimumSize()
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
�е� propertyChange
e
- �����¼�Դ���Ѹ������Ե� PropertyChangeEvent ����public void paint(Graphics g)
Container
�е� paint
g
- ָ���� Graphics ����Component.update(Graphics)
protected void oneTouchExpandableChanged()
leftButton
�� rightButton
Ϊ null�������ǣ�ͬʱʹ��������Ч��
protected JButton createLeftOneTouchButton()
protected JButton createRightOneTouchButton()
protected void prepareForDragging()
protected void dragDividerTo(int location)
protected void finishDraggingTo(int location)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������