|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.swing.text.FlowView.FlowStrategy
public static class FlowView.FlowStrategy
ά������������ʽ�IJ��ԡ�Ĭ��ʵ������ȫ��״̬�ģ�������������� FlowView ������Ч����Ҫ���¼��������������ò��Կ���ͨ����������ʵ�֣����ҿ��ԶԲ��ֻ��÷ֽ���Ϊִ����������
���췽��ժҪ | |
---|---|
FlowView.FlowStrategy()
|
����ժҪ | |
---|---|
protected void |
adjustRow(FlowView fv,
int rowIndex,
int desiredSpan,
int x)
���п��ܣ�������������ʹ���ʺϲ������� |
void |
changedUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
����֪ͨ��֪ͨ�ĵ��д���ͼ�����ij��λ�õ������Ѹ��ġ� |
protected View |
createView(FlowView fv,
int startOffset,
int spanLeft,
int rowIndex)
����һ�������ڱ�ʾ���ĵ�ǰƬ�ε���ͼ�� |
protected View |
getLogicalView(FlowView fv)
�˷����ṩ���� FlowView ������ͼ�������ԡ� |
void |
insertUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
����֪ͨ��֪ͨ���ĵ��д���ͼ�����ij��λ���Ѳ������ݡ� |
void |
layout(FlowView fv)
���¸��� FlowView ������ |
protected int |
layoutRow(FlowView fv,
int rowIndex,
int pos)
����һ�����ϸ��в����������ͼ���С� |
void |
removeUpdate(FlowView fv,
DocumentEvent e,
Rectangle alloc)
����֪ͨ��֪ͨ�Ѵ��ĵ��д˸�������ͼ�����ij��λ���Ƴ�ijЩ���ݡ� |
���� java.lang.Object �̳еķ��� |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public FlowView.FlowStrategy()
������ϸ��Ϣ |
---|
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
e
- ��������ĵ��ĸ�����Ϣalloc
- �� insets �ڴ���ͼ�ĵ�ǰ�������������ͼ��δ��ʾ�����ֵΪ null��View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
e
- ��������ĵ��ĸ�����Ϣalloc
- �� insets �ڴ���ͼ�ĵ�ǰ��������View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
fv
- ������Щ���ĵ� FlowView
e
- �������ĵ������ĸ��ĵ� DocumentEvent
alloc
- ��ͼ�ı߽�View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
protected View getLogicalView(FlowView fv)
public void layout(FlowView fv)
fv
- ������ͼprotected int layoutRow(FlowView fv, int rowIndex, int pos)
rowIndex
- Ҫʹ����ͼ�����е��������ٶ������Ϊ�ա�pos
- ��ͼ�Ӽ���Ԫ�ش��俪ʼ�ĵ�ǰλ�á�
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x)
rowIndex
- ������ǰ����������С�desiredSpan
- ��ǰ��������ֵ >= 0x
- �п�ʼ����λ�á�protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex)
fv
- ����������ͼstartOffset
- ����������ͼ�Ŀ�ʼλ��spanLeft
- ��������������벿��rowIndex
- ��ͼ���������е���
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������