| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.AsyncBoxView.ChildLocator
public class AsyncBoxView.ChildLocator
该类在本地化区域发生更改时,管理该本地化区域中子视图的有效位置。AsyncBoxView 可能在不断地更改,但是在布局线程决定向父级发布更新之前,可见的区域需要保持相对的稳定。
| 字段摘要 | |
|---|---|
| protected  Rectangle | childAlloc用于子级分配区域以避免创建大量垃圾的形状。 | 
| protected  Rectangle | lastAlloc最后的可见分配区域(用于向上刷新更改时进行重新绘制)。 | 
| protected  AsyncBoxView.ChildState | lastValidOffset最后一次有效偏移量计算的位置。 | 
| 构造方法摘要 | |
|---|---|
| AsyncBoxView.ChildLocator()构造 ChildLocator。 | |
| 方法摘要 | |
|---|---|
|  void | childChanged(AsyncBoxView.ChildState cs)子级已更改的通知。 | 
| protected  Shape | getChildAllocation(int index)获取用于子视图的分配区域。 | 
|  Shape | getChildAllocation(int index,
                   Shape a)获取用于子视图的分配区域。 | 
|  int | getViewIndexAtPoint(float x,
                    float y,
                    Shape a)获取位于给定点的子视图索引。 | 
| protected  int | getViewIndexAtVisualOffset(float targetOffset)查找负责表示沿主轴方向框中偏移量位置的视图。 | 
|  void | paintChildren(Graphics g)绘制与剪贴区域相交的子级。 | 
| protected  void | setAllocation(Shape a)将当前已分配的形状复制到用于存储当前分配区域的 Rectangle 中。 | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 字段详细信息 | 
|---|
protected AsyncBoxView.ChildState lastValidOffset
protected Rectangle lastAlloc
protected Rectangle childAlloc
| 构造方法详细信息 | 
|---|
public AsyncBoxView.ChildLocator()
| 方法详细信息 | 
|---|
public void childChanged(AsyncBoxView.ChildState cs)
public void paintChildren(Graphics g)
public Shape getChildAllocation(int index,
                                Shape a)
public int getViewIndexAtPoint(float x,
                               float y,
                               Shape a)
x - X 坐标,该坐标 >= 0y - Y 坐标,该坐标 >= 0a - View 的分配区域
protected Shape getChildAllocation(int index)
protected void setAllocation(Shape a)
protected int getViewIndexAtVisualOffset(float targetOffset)
| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。