javax.swing.text
Class AsyncBoxView

java.lang.Object
  |
  +--javax.swing.text.View
        |
        +--javax.swing.text.AsyncBoxView
All Implemented Interfaces:
SwingConstants
public class AsyncBoxView
extends View

A box that does layout asynchronously. This is useful to keep the GUI event thread moving by not doing any layout on it. The layout is done on a granularity of operations on the child views. After each child view is accessed for some part of layout (a potentially time consuming operation) the remaining tasks can be abandoned or a new higher priority task (i.e. to service a synchronous request or a visible area) can be taken on.

While the child view is being accessed a read lock is aquired on the associated document so that the model is stable while being accessed.

Since:
1.3

 

Nested Class Summary

 class AsyncBoxView.ChildLocator
    A class to manage the effective position of the child views in a localized area while changes are being made around the localized area.
 class AsyncBoxView.ChildState
    A record representing the layout state of a child view.
 

 

Field Summary

protected  AsyncBoxView.ChildLocator locator
    Object that manages the offsets of the children.
 
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS<