java.lang.Object
javax.swing.tree.AbstractLayoutCache.NodeDimensions
- 直接已知的子类:
-
BasicTreeUI.NodeDimensionsHandler
- 封装类:
-
AbstractLayoutCache
由
AbstractLayoutCache用于确定特定节点的大小和x起点。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RectanglegetNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) 通过引用在bounds中返回大小和x起点以放置值。
-
Constructor Details
-
NodeDimensions
protected NodeDimensions()子类调用的构造函数。
-
-
Method Details
-
getNodeDimensions
public abstract Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) 通过引用在bounds中返回大小和x起点以放置值。调用方法负责确定Y位置。如果bounds为null,应返回一个新创建的Rectangle,否则应将值放入bounds并返回。- 参数:
-
value- 要表示的value -
row- 正在查询的行 -
depth- 行的深度 -
expanded- 如果行已展开为true,否则为false -
bounds- 包含表示value所需大小的Rectangle - 返回:
-
包含节点尺寸的
Rectangle,如果节点没有尺寸则返回null
-