java.lang.Objectjavax.swing.tree.AbstractLayoutCache.NodeDimensions
public abstract static class AbstractLayoutCache.NodeDimensions
由 AbstractLayoutCache 使用,用于确定特定节点的大小和 x 原点。
| 构造方法摘要 | |
|---|---|
AbstractLayoutCache.NodeDimensions() |
|
| 方法摘要 | |
|---|---|
abstract Rectangle |
getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) 通过对 bounds 的引用,返回用于保存值的节点的大小和其在 x 轴上的起点。 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public AbstractLayoutCache.NodeDimensions()
| 方法详细信息 |
|---|
public abstract Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
null,则返回新创建的
Rectangle,否则,将该值保存在 bounds 中,并返回该值。
value - 要表示的
value
row - 查询的行
depth - 行的深度
expanded - 如果行已扩展,则为 true,否则为 false
bounds - 包含表示
value 所需大小的
Rectangle
Rectangle,如果节点没有尺寸,则返回
null