当前页面: 
在线文档首页 > 
JavaTM 2 Platform Standard Edition 6.0 API 规范中文版
AbstractLayoutCache.NodeDimensions (Java Platform SE 6) - JavaTM 2 Platform Standard Edition 6.0 API 规范中文版
javax.swing.tree
类 AbstractLayoutCache.NodeDimensions
java.lang.Object
  
javax.swing.tree.AbstractLayoutCache.NodeDimensions
- 直接已知子类: 
 - BasicTreeUI.NodeDimensionsHandler
 
- 正在封闭类:
 - AbstractLayoutCache
 
public abstract static class AbstractLayoutCache.NodeDimensions
- extends Object
 
由 AbstractLayoutCache 使用,用于确定特定节点的大小和 x 原点。
 
 
| 从类 java.lang.Object 继承的方法 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AbstractLayoutCache.NodeDimensions
public AbstractLayoutCache.NodeDimensions()
getNodeDimensions
public abstract Rectangle getNodeDimensions(Object value,
                                            int row,
                                            int depth,
                                            boolean expanded,
                                            Rectangle bounds)
- 通过对 bounds 的引用,返回用于保存值的节点的大小和其在 x 轴上的起点。调用方法负责确定 Y 坐标。如果 bounds 为 
null,则返回新创建的 Rectangle,否则,将该值保存在 bounds 中,并返回该值。
- 参数:
 value - 要表示的 valuerow - 查询的行depth - 行的深度expanded - 如果行已扩展,则为 true,否则为 falsebounds - 包含表示 value 所需大小的 Rectangle
- 返回:
 - 包含节点尺寸的 
Rectangle,如果节点没有尺寸,则返回 null 
 
 
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。