public abstract class FlowView extends BoxView
View| 修飾子と型 | クラス | 説明 | 
|---|---|---|
| static class  | FlowView.FlowStrategy | フローの物理的なフォームを維持するための方法です。 | 
| 修飾子と型 | フィールド | 説明 | 
|---|---|---|
| protected View | layoutPool | このビューが表す要素(物理的ビューに変換する論理ビュー)の子要素を表すビューです。 | 
| protected int | layoutSpan | フローが作成される際のデフォルトの制約です。 | 
| protected FlowView.FlowStrategy | strategy | フローを更新し続ける動作です。 | 
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| 修飾子と型 | メソッド | 説明 | 
|---|---|---|
| protected SizeRequirements | calculateMinorAxisRequirements(int axis, SizeRequirements r) | 副軸の必要サイズを計算します。 | 
| void | changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) | このビューが扱う位置で属性が変更されたことをドキュメントから通知します。 | 
| protected abstract View | createRow() | フローの子に相当する行を保持するのに使うViewを作成します。 | 
| int | getFlowAxis() | それに沿ってビューをフローする軸を取得します。 | 
| int | getFlowSpan(int index) | 指定された子のインデックスに反してフローする制約スパンを取得します。 | 
| int | getFlowStart(int index) | フロー・スパンを開始する、フロー軸に沿った位置を取得します。 | 
| protected int | getViewIndexAtPosition(int pos) | モデル内の指定された位置を表す子ビューのインデックスを取得します。 | 
| void | insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) | このビューが扱う位置でドキュメントに何かが挿入されたことを通知します。 | 
| protected void | layout(int width, int height) | 子を配置します。 | 
| protected void | loadChildren(ViewFactory f) | ビューを初期化するためにすべての子をロードします。 | 
| void | removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) | このビューが扱うドキュメント内の位置から何かが削除されたということを通知します。 | 
| void | setParent(View parent) | ビューの親を設定します。 | 
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paint, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModelgetBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, modelToView, setInsets, setParagraphInsetsappend, breakView, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, updateChildren, updateLayout, viewToModelprotected int layoutSpan
protected View layoutPool
protected FlowView.FlowStrategy strategy
public FlowView(Element elem, int axis)
elem - このビューが扱う要素axis - View.X_AXISまたはView.Y_AXISpublic int getFlowAxis()
FlowStrategyが使用します。 public int getFlowSpan(int index)
index - 更新中の行のインデックス。 0以上でgetViewCount()より小さい値であること。 getFlowStart(int)public int getFlowStart(int index)
index - 更新中の行のインデックス。 0以上でgetViewCount()より小さい値であること。 getFlowSpan(int)protected abstract View createRow()
protected void loadChildren(ViewFactory f)
setParentメソッドによって呼び出されます。 このメソッドを再実装すると、どの子も(書式設定のプロセスで作成されるので)直接ロードしないようにできます。 layoutPool変数がnullの場合、LogicalViewのインスタンスが生成され、書式設定のプロセスで使われる論理ビューを表します。 loadChildren、クラスCompositeViewf - ビュー・ファクトリCompositeView.setParent(javax.swing.text.View)protected int getViewIndexAtPosition(int pos)
getViewIndexAtPosition、クラスCompositeViewpos - 位置>= 0protected void layout(int width,
                      int height)
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r)
calculateMinorAxisRequirements、クラスBoxViewaxis - 調査中の軸r - SizeRequirementsオブジェクト。nullの場合、1つ作成されるSizeRequirementsオブジェクトSizeRequirementspublic void insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
insertUpdate、クラスViewchanges - 関連するドキュメントからの変更情報a - ビューの現在の割当てf - ビューが子を持つ場合に再構築に使用するファクトリView.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f)
removeUpdate、クラスViewchanges - 関連するドキュメントからの変更情報a - ビューの現在の割当てf - ビューが子を持つ場合に再構築に使用するファクトリView.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
changedUpdate、クラスViewchanges - 関連するドキュメントからの変更情報a - ビューの現在の割当てf - ビューが子を持つ場合に再構築に使用するファクトリView.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)public void setParent(View parent)
loadChildrenメソッドの呼出しとともにスーパークラスの動作を提供するために実装し直されます。 子をコンストラクタの中にロードしないようにしてください。これは、親を設定する動作が原因となって、たとえば収容側Containerを取得するために、子が階層をさかのぼって検索しようとする可能性があるからです。 このビューが子を持つ場合、ビューはビュー階層内のある位置から別の位置へ移動しているので、loadChildrenメソッドは呼び出されません。 setParent、クラスCompositeViewparent - ビューの親。ない場合はnull バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。 
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved.  Use is subject to license terms.  Documentation Redistribution Policyも参照してください。