java.lang.Object
javax.swing.tree.AbstractLayoutCache.NodeDimensions
- 封闭类:
AbstractLayoutCache
AbstractLayoutCache 使用它来确定特定节点的大小和 x 原点。
-
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述abstract RectanglegetNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) 通过在边界中的引用返回放置值的大小和 x 原点。
-
构造方法详细信息
-
NodeDimensions
protected NodeDimensions()子类调用的构造方法。
-
-
方法详情
-
getNodeDimensions
public abstract Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) 通过在边界中的引用返回放置值的大小和 x 原点。调用方法负责确定 Y 位置。如果 bounds 是null,则应返回新创建的Rectangle,否则应将值放在 bounds 中并返回。- 参数:
value- 要表示的valuerow- 正在查询的行depth- 行的深度expanded- 如果行被扩展则为真,否则为假bounds- 一个Rectangle包含表示value所需的大小- 返回:
-
一个
Rectangle包含节点维度,或者null如果节点没有维度
-