| Constructor and Description | 
|---|
| FlowStrategy() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x)
              如果可能,调整给定行以适应布局范围。 
             | 
| void | changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
              在该视图负责的位置向文档发出属性更改的通知。 
             | 
| 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)
              在给定的流程视图负责的位置发出通知。 
             | 
| void | layout(FlowView fv)
              更新给定FlowView的流程。 
             | 
| protected int | layoutRow(FlowView fv, int rowIndex, int pos)
              创建一行将适合该行的布局范围内的视图。 
             | 
| void | removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
              在给定流程视图负责的位置发出文档中已删除某些内容的通知。 
             | 
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
e - 相关文件的更改信息 
           alloc - 当前分配的视图里面的插图。 
            如果视图尚未显示,则此值将为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 - 当前分配的视图里面的插图。 
           View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) 
           public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
fv - 包含 
            FlowView FlowView 
           e - 
            DocumentEvent文档所做更改的 
            DocumentEvent 
           alloc - 视图的界限 
           View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) 
           public void layout(FlowView fv)
fv - 回流视图 
           protected int layoutRow(FlowView fv, int rowIndex, int pos)
rowIndex - 要用视图填充的行的索引。 
            该行在入口时假定为空。 
           pos - 此视图元素的子元素的当前位置 
            pos开始。 
           protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x)
rowIndex - 要调整到当前布局范围的行。 
           desiredSpan - 当前布局跨度> = 0 
           x - 位置r开始。 
            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.