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
-视图的当前配置里面的插图。如果视图尚未显示,此值将为空。
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
e
-描述所做的更改文件的
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
元素从孩子开始的当前位置。
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.