public class AsyncBoxView.ChildLocator extends Object
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
childAlloc
一个形状用于子分配,避免产生大量的垃圾。
|
protected Rectangle |
lastAlloc
最后一次看到分配(重绘时更改刷新向上)。
|
protected AsyncBoxView.ChildState |
lastValidOffset
最后偏移量计算的位置是有效的。
|
Constructor and Description |
---|
ChildLocator()
构建一个子定位器。
|
Modifier and Type | Method and Description |
---|---|
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)
将当前分配的形状复制到用于存储当前分配的矩形中。
|
protected AsyncBoxView.ChildState lastValidOffset
protected Rectangle lastAlloc
protected Rectangle childAlloc
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坐标> = 0
y
- Y坐标> = 0
a
-配置视图
protected Shape getChildAllocation(int index)
protected void setAllocation(Shape a)
protected int getViewIndexAtVisualOffset(float targetOffset)
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.