⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractlayoutcache.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<HR><A NAME="getPreferredHeight()"><!-- --></A><H3>getPreferredHeight</H3><PRE>public int <B>getPreferredHeight</B>()</PRE><DL><DD>Returns the preferred height.<DD><DL></DL></DD></DL><HR><A NAME="getPreferredWidth(java.awt.Rectangle)"><!-- --></A><H3>getPreferredWidth</H3><PRE>public int <B>getPreferredWidth</B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;bounds)</PRE><DL><DD>Returns the preferred width for the passed in region. If <code>bounds</code> is null, the preferred width for all the nodes will be returned (and this may be VERY expensive).<DD><DL></DL></DD></DL><HR><A NAME="isExpanded(javax.swing.tree.TreePath)"><!-- --></A><H3>isExpanded</H3><PRE>public abstract boolean <B>isExpanded</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Returns true if the value identified by row is currently expanded.<DD><DL></DL></DD></DL><HR><A NAME="getBounds(javax.swing.tree.TreePath, java.awt.Rectangle)"><!-- --></A><H3>getBounds</H3><PRE>public abstract <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>getBounds</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path,                                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;placeIn)</PRE><DL><DD>Returns a rectangle giving the bounds needed to draw path.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>path</CODE> - a TreePath specifying a node<DD><CODE>placeIn</CODE> - a Rectangle object giving the available space<DT><B>Returns:</B><DD>a Rectangle object specifying the space to be used</DL></DD></DL><HR><A NAME="getPathForRow(int)"><!-- --></A><H3>getPathForRow</H3><PRE>public abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> <B>getPathForRow</B>(int&nbsp;row)</PRE><DL><DD>Returns the path for passed in row.  If row is not visible null is returned.<DD><DL></DL></DD></DL><HR><A NAME="getRowForPath(javax.swing.tree.TreePath)"><!-- --></A><H3>getRowForPath</H3><PRE>public abstract int <B>getRowForPath</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Returns the row that the last item identified in path is visible at.  Will return -1 if any of the elements in path are not currently visible.<DD><DL></DL></DD></DL><HR><A NAME="getPathClosestTo(int, int)"><!-- --></A><H3>getPathClosestTo</H3><PRE>public abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> <B>getPathClosestTo</B>(int&nbsp;x,                                          int&nbsp;y)</PRE><DL><DD>Returns the path to the node that is closest to x,y.  If there is nothing currently visible this will return null, otherwise it'll always return a valid path.  If you need to test if the returned object is exactly at x, y you should get the bounds for the returned path and test x, y against that.<DD><DL></DL></DD></DL><HR><A NAME="getVisiblePathsFrom(javax.swing.tree.TreePath)"><!-- --></A><H3>getVisiblePathsFrom</H3><PRE>public abstract <A HREF="../../../java/util/Enumeration.html">Enumeration</A> <B>getVisiblePathsFrom</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Returns an Enumerator that increments over the visible paths starting at the passed in location. The ordering of the enumeration is based on how the paths are displayed. The first element of the returned enumeration will be path, unless it isn't visible, in which case null will be returned.<DD><DL></DL></DD></DL><HR><A NAME="getVisibleChildCount(javax.swing.tree.TreePath)"><!-- --></A><H3>getVisibleChildCount</H3><PRE>public abstract int <B>getVisibleChildCount</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Returns the number of visible children for row.<DD><DL></DL></DD></DL><HR><A NAME="setExpandedState(javax.swing.tree.TreePath, boolean)"><!-- --></A><H3>setExpandedState</H3><PRE>public abstract void <B>setExpandedState</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path,                                      boolean&nbsp;isExpanded)</PRE><DL><DD>Marks the path <code>path</code> expanded state to <code>isExpanded</code>.<DD><DL></DL></DD></DL><HR><A NAME="getExpandedState(javax.swing.tree.TreePath)"><!-- --></A><H3>getExpandedState</H3><PRE>public abstract boolean <B>getExpandedState</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Returns true if the path is expanded, and visible.<DD><DL></DL></DD></DL><HR><A NAME="getRowCount()"><!-- --></A><H3>getRowCount</H3><PRE>public abstract int <B>getRowCount</B>()</PRE><DL><DD>Number of rows being displayed.<DD><DL></DL></DD></DL><HR><A NAME="invalidateSizes()"><!-- --></A><H3>invalidateSizes</H3><PRE>public abstract void <B>invalidateSizes</B>()</PRE><DL><DD>Informs the TreeState that it needs to recalculate all the sizes it is referencing.<DD><DL></DL></DD></DL><HR><A NAME="invalidatePathBounds(javax.swing.tree.TreePath)"><!-- --></A><H3>invalidatePathBounds</H3><PRE>public abstract void <B>invalidatePathBounds</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Instructs the LayoutCache that the bounds for <code>path</code> are invalid, and need to be updated.<DD><DL></DL></DD></DL><HR><A NAME="treeNodesChanged(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesChanged</H3><PRE>public abstract void <B>treeNodesChanged</B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</PRE><DL><DD><p>Invoked after a node (or a set of siblings) has changed in some way. The node(s) have not changed locations in the tree or altered their children arrays, but other attributes have changed and may affect presentation. Example: the name of a file has changed, but it is in the same location in the file system.</p> <p>e.path() returns the path the parent of the changed node(s).</p> <p>e.childIndices() returns the index(es) of the changed node(s).</p><DD><DL></DL></DD></DL><HR><A NAME="treeNodesInserted(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesInserted</H3><PRE>public abstract void <B>treeNodesInserted</B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</PRE><DL><DD><p>Invoked after nodes have been inserted into the tree.</p> <p>e.path() returns the parent of the new nodes <p>e.childIndices() returns the indices of the new nodes in ascending order.<DD><DL></DL></DD></DL><HR><A NAME="treeNodesRemoved(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeNodesRemoved</H3><PRE>public abstract void <B>treeNodesRemoved</B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</PRE><DL><DD><p>Invoked after nodes have been removed from the tree.  Note that if a subtree is removed from the tree, this method may only be invoked once for the root of the removed subtree, not once for each individual set of siblings removed.</p> <p>e.path() returns the former parent of the deleted nodes.</p> <p>e.childIndices() returns the indices the nodes had before they were deleted in ascending order.</p><DD><DL></DL></DD></DL><HR><A NAME="treeStructureChanged(javax.swing.event.TreeModelEvent)"><!-- --></A><H3>treeStructureChanged</H3><PRE>public abstract void <B>treeStructureChanged</B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</PRE><DL><DD><p>Invoked after the tree has drastically changed structure from a given node down.  If the path returned by e.getPath() is of length one and the first element does not identify the current root node the first element should become the new root of the tree.<p> <p>e.path() holds the path to the node.</p> <p>e.childIndices() returns null.</p><DD><DL></DL></DD></DL><HR><A NAME="getRowsForPaths(javax.swing.tree.TreePath[])"><!-- --></A><H3>getRowsForPaths</H3><PRE>public int[] <B>getRowsForPaths</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>[]&nbsp;paths)</PRE><DL><DD>Returns the rows that the TreePath instances in <code>path</code> are being displayed at. The receiver should return an array of the same length as that passed in, and if one of the TreePaths in <code>path</code> is not valid its entry in the array should be set to -1.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/tree/RowMapper.html#getRowsForPaths(javax.swing.tree.TreePath[])">getRowsForPaths</A></CODE> in interface <CODE><A HREF="../../../javax/swing/tree/RowMapper.html">RowMapper</A></CODE></DL></DD></DL><HR><A NAME="getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle)"><!-- --></A><H3>getNodeDimensions</H3><PRE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>getNodeDimensions</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value,                                      int&nbsp;row,                                      int&nbsp;depth,                                      boolean&nbsp;expanded,                                      <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;placeIn)</PRE><DL><DD>Returns, by reference in size, the size needed to reprensent value. If size is null, a newly created Dimension should be returned, otherwise the value should be placed in size and returned. This will return null if there is no renderer.<DD><DL></DL></DD></DL><HR><A NAME="isFixedRowHeight()"><!-- --></A><H3>isFixedRowHeight</H3><PRE>protected boolean <B>isFixedRowHeight</B>()</PRE><DL><DD>Returns true if the height of each row is a fixed size.<DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractLayoutCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractLayoutCache.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -