|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.FlowView.FlowStrategy
public static class FlowView.FlowStrategy
維護串流的物理形式的策略。預設實作是完全無狀態的,並且如果給定的 FlowView 佈局無效,則要重新計算整個串流。備用策略可以通過創建子類別實作,並且可以對佈局或備用分解行為執行增量修復。
| 建構子摘要 | |
|---|---|
FlowView.FlowStrategy()
|
|
| 方法摘要 | |
|---|---|
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)
發出通知,通知已從文檔中此給定串流視圖負責的某個位置移除某些內容。 |
| 從類別 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 - 套件含這些更改的 FlowViewe - 描述對文檔做出的更改的 DocumentEventalloc - 視圖的邊界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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。