API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text. AsyncBoxView.ChildLocator View Source
Author(s)
Since
1.3
Version
Serial
Hierarchy
 Object
      AsyncBoxView.ChildLocator
Implements
Subclasses
Description
public 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.
See also:   
Constructors
public AsyncBoxView.ChildLocator ()
construct a child locator.
Methods
Hide/Show inherited methods
publicsynchronized void childChanged (ChildState cs)
  Notification that a child changed.
protected Shape getChildAllocation (int index)
  Fetch the allocation to use for a child view.
publicsynchronized Shape getChildAllocation (int index, Shape a)
  Fetch the allocation to use for a child view.
public int getViewIndexAtPoint (float x, float y, Shape a)
  Fetches the child view index at the given point.
protected int getViewIndexAtVisualOffset (float targetOffset)
  Locate the view responsible for an offset into the box along the major axis.
pack-private boolean intersectsClip (Shape childAlloc, Rectangle clip)
publicsynchronized void paintChildren (Graphics g)
Paint the children that intersect the clip area.
protected void setAllocation (Shape a)
  Copy the currently allocated shape into the Rectangle used to store the current allocation.
pack-private int updateChildOffsets (float targetOffset)
Move the location of the last offset calculation forward to the desired offset.
pack-private void updateChildOffsetsToIndex (int index)
Move the location of the last offset calculation forward to the desired index.
Fields
Hide/Show inherited fields
protected Rectangle childAlloc
A shape to use for the child allocation to avoid creating a lot of garbage.
protected Rectangle lastAlloc
The last seen allocation (for repainting when changes are flushed upward).
protected ChildState lastValidOffset
The location of the last offset calculation that is valid.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar