javax.swing.text
Class FlowView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.CompositeView
              |
              +--javax.swing.text.BoxView
                    |
                    +--javax.swing.text.FlowView
All Implemented Interfaces:
SwingConstants
Direct Known Subclasses:
ParagraphView
public abstract class FlowView
extends BoxView

A View that tries to flow it's children into some partially constrained space. This can be used to build things like paragraphs, pages, etc. The flow is made up of the following pieces of functionality.

  • A logical set of child views, which as used as a layout pool from which a physical view is formed.
  • A strategy for translating the logical view to a physical (flowed) view.
  • Constraints for the strategy to work against.
  • A physical structure, that represents the flow. The children of this view are where the pieces of of the logical views are placed to create the flow.

See Also:
View

 

Nested Class Summary

static class FlowView.FlowStrategy
    Strategy for maintaining the physical form of the flow.
 

 

Field Summary

protected  View layoutPool
    These are the views that represent the child elements of the element this view represents (The logical view to translate to a physical view).
protected  int layoutSpan
    Default constraint against which the flow is created against.
protected  FlowView.FlowStrategy strategy