public class BasicTreeUI.NodeDimensionsHandler extends AbstractLayoutCache.NodeDimensions
| Constructor and Description |
|---|
NodeDimensionsHandler() |
public Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
getNodeDimensions在
AbstractLayoutCache.NodeDimensions
value -的
value被表示
row - 正在查询的行
depth - 行的深度
expanded - 如果行被展开,则为true,否则为false
size - a
Rectangle包含所需的大小,代表
value
Rectangle包含节点的尺寸,或
null如果节点没有尺寸
protected int getRowX(int row,
int depth)