📄 abstractlayoutcache.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:42:45 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class AbstractLayoutCache</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractLayoutCache.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <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> <A HREF="AbstractLayoutCache.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.swing.tree</FONT><BR>Class AbstractLayoutCache</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<B>javax.swing.tree.AbstractLayoutCache</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../javax/swing/tree/RowMapper.html">RowMapper</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html">FixedHeightLayoutCache</A>, <A HREF="../../../javax/swing/tree/VariableHeightLayoutCache.html">VariableHeightLayoutCache</A></DD></DL><HR><DL><DT>public abstract class <B>AbstractLayoutCache</B><DT>extends <A HREF="../../../java/lang/Object.html">Object</A><DT>implements <A HREF="../../../javax/swing/tree/RowMapper.html">RowMapper</A></DL><P><strong>Warning:</strong> Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><A NAME="inner_class_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Inner Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A></B></CODE><BR> Used by AbstractLayoutCache to determing the size and x origin of a particular node.</TD></TR></TABLE> <!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#nodeDimensions">nodeDimensions</A></B></CODE><BR> Object responsible for getting the size of a node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#rootVisible">rootVisible</A></B></CODE><BR> True if the root node is displayed, false if its children are the highest visible nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#rowHeight">rowHeight</A></B></CODE><BR> Height to use for each row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeModel">treeModel</A></B></CODE><BR> Model providing information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#treeSelectionModel">treeSelectionModel</A></B></CODE><BR> Selection model.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#AbstractLayoutCache()">AbstractLayoutCache</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getBounds(javax.swing.tree.TreePath, java.awt.Rectangle)">getBounds</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> placeIn)</CODE><BR> Returns a rectangle giving the bounds needed to draw path.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getExpandedState(javax.swing.tree.TreePath)">getExpandedState</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns true if the path is expanded, and visible.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getModel()">getModel</A></B>()</CODE><BR> Returns the TreeModel that is providing the data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/AbstractLayoutCache.NodeDimensions.html">AbstractLayoutCache.NodeDimensions</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions()">getNodeDimensions</A></B>()</CODE><BR> Returns the object that renders nodes in the tree, and which is responsible for calculating the dimensions of individual nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle)">getNodeDimensions</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> value, int row, int depth, boolean expanded, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> placeIn)</CODE><BR> Returns, by reference in size, the size needed to reprensent value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPathClosestTo(int, int)">getPathClosestTo</A></B>(int x, int y)</CODE><BR> Returns the path to the node that is closest to x,y.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPathForRow(int)">getPathForRow</A></B>(int row)</CODE><BR> Returns the path for passed in row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredHeight()">getPreferredHeight</A></B>()</CODE><BR> Returns the preferred height.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredWidth(java.awt.Rectangle)">getPreferredWidth</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> bounds)</CODE><BR> Returns the preferred width for the passed in region.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowCount()">getRowCount</A></B>()</CODE><BR> Number of rows being displayed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowForPath(javax.swing.tree.TreePath)">getRowForPath</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns the row that the last item identified in path is visible at.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowHeight()">getRowHeight</A></B>()</CODE><BR> Returns the height of each row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowsForPaths(javax.swing.tree.TreePath[])">getRowsForPaths</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>[] paths)</CODE><BR> Returns the rows that the TreePath instances in <code>path</code> are being displayed at.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/tree/TreeSelectionModel.html">TreeSelectionModel</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getSelectionModel()">getSelectionModel</A></B>()</CODE><BR> Returns the model used to maintain the selection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getVisibleChildCount(javax.swing.tree.TreePath)">getVisibleChildCount</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns the number of visible children for row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/util/Enumeration.html">Enumeration</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getVisiblePathsFrom(javax.swing.tree.TreePath)">getVisiblePathsFrom</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns an Enumerator that increments over the visible paths starting at the passed in location.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#invalidatePathBounds(javax.swing.tree.TreePath)">invalidatePathBounds</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Instructs the LayoutCache that the bounds for <code>path</code> are invalid, and need to be updated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#invalidateSizes()">invalidateSizes</A></B>()</CODE><BR> Informs the TreeState that it needs to recalculate all the sizes it is referencing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#isExpanded(javax.swing.tree.TreePath)">isExpanded</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -