public abstract class FlowView extends BoxView
View 
       | Modifier and Type | Class and Description | 
|---|---|
| static class  | FlowView.FlowStrategy
              保持流动的物理形式的策略。 
             | 
| Modifier and Type | Field and Description | 
|---|---|
| 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| Modifier and Type | Method and Description | 
|---|---|
| protected SizeRequirements | calculateMinorAxisRequirements(int axis, SizeRequirements r)
              计算沿短轴的要求。 
             | 
| void | changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
              在该视图负责的位置向文档发出属性更改的通知。 
             | 
| protected abstract View | createRow()
              创建一个应用于在一个流中保存一行值得孩子的视图。 
             | 
| 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_AXIS 
           public 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变量为空,则会创建一个LogicalView实例来表示在格式化过程中使用的逻辑视图。 
          loadChildren在 
            CompositeView 
           f - 视图工厂 
           CompositeView.setParent(javax.swing.text.View) 
           protected int getViewIndexAtPosition(int pos)
getViewIndexAtPosition在 
            CompositeView 
           pos - 位置> = 0 
           protected void layout(int width,
                      int height) 
          protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r)
calculateMinorAxisRequirements在 
            BoxView 
           axis - 正在研究的轴 
           r - SizeRequirements对象; 
            如果null将创建一个 
           SizeRequirements对象 
           SizeRequirements 
           public void insertUpdate(DocumentEvent changes, Shape a, ViewFactory f)
insertUpdate在 
            View 
           changes - 相关文件的更改信息 
           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在 
            View 
           changes - 相关文件的变更信息 
           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在 
            View 
           changes - 相关文件的更改信息 
           a - 视图的当前分配 
           f - 工厂使用重建如果视图有孩子 
           View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory) 
           public void setParent(View parent)
loadChildren方法。 
           孩子不应该加载在构造函数中,因为设置父进程的行为可能会导致他们尝试搜索层次结构(例如获取主机Container )。 
           如果此视图具有子节点(视图正从视图层次结构中的一个位置移动到另一个视图),则不会调用loadChildren方法。 
          setParent在 
            CompositeView 
           parent - 视图的父级, 
            null如果没有 
            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.