JavaTM 2 Platform
Standard Ed. 6

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 原点。


构造方法摘要
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
 

构造方法详细信息

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 - 要表示的 value
row - 查询的行
depth - 行的深度
expanded - 如果行已扩展,则为 true,否则为 false
bounds - 包含表示 value 所需大小的 Rectangle
返回:
包含节点尺寸的 Rectangle,如果节点没有尺寸,则返回 null

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策