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

📄 fixedheightlayoutcache.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#isExpanded(javax.swing.tree.TreePath)">isExpanded</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the value identified by row is currently expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#setExpandedState(javax.swing.tree.TreePath, boolean)">setExpandedState</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path,                 boolean&nbsp;isExpanded)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Marks the path <code>path</code> expanded state to <code>isExpanded</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#setModel(javax.swing.tree.TreeModel)">setModel</A></B>(<A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A>&nbsp;newModel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the TreeModel that will provide the data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#setRootVisible(boolean)">setRootVisible</A></B>(boolean&nbsp;rootVisible)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines whether or not the root node from the TreeModel is visible.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#setRowHeight(int)">setRowHeight</A></B>(int&nbsp;rowHeight)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the height of each cell.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#treeNodesChanged(javax.swing.event.TreeModelEvent)">treeNodesChanged</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked after a node (or a set of siblings) has changed in some way.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#treeNodesInserted(javax.swing.event.TreeModelEvent)">treeNodesInserted</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked after nodes have been inserted into the tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#treeNodesRemoved(javax.swing.event.TreeModelEvent)">treeNodesRemoved</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked after nodes have been removed from the tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/FixedHeightLayoutCache.html#treeStructureChanged(javax.swing.event.TreeModelEvent)">treeStructureChanged</A></B>(<A HREF="../../../javax/swing/event/TreeModelEvent.html">TreeModelEvent</A>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoked after the tree has drastically changed structure from a given node down.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.tree.AbstractLayoutCache"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.tree.<A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getModel()">getModel</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions()">getNodeDimensions</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getNodeDimensions(java.lang.Object, int, int, boolean, java.awt.Rectangle)">getNodeDimensions</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredHeight()">getPreferredHeight</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getPreferredWidth(java.awt.Rectangle)">getPreferredWidth</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowHeight()">getRowHeight</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowsForPaths(javax.swing.tree.TreePath[])">getRowsForPaths</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getSelectionModel()">getSelectionModel</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#isFixedRowHeight()">isFixedRowHeight</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#isRootVisible()">isRootVisible</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setNodeDimensions(javax.swing.tree.AbstractLayoutCache.NodeDimensions)">setNodeDimensions</A>, <A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setSelectionModel(javax.swing.tree.TreeSelectionModel)">setSelectionModel</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="FixedHeightLayoutCache()"><!-- --></A><H3>FixedHeightLayoutCache</H3><PRE>public <B>FixedHeightLayoutCache</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setModel(javax.swing.tree.TreeModel)"><!-- --></A><H3>setModel</H3><PRE>public void <B>setModel</B>(<A HREF="../../../javax/swing/tree/TreeModel.html">TreeModel</A>&nbsp;newModel)</PRE><DL><DD>Sets the TreeModel that will provide the data.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setModel(javax.swing.tree.TreeModel)">setModel</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newModel</CODE> - the TreeModel that is to provide the data</DL></DD></DL><HR><A NAME="setRootVisible(boolean)"><!-- --></A><H3>setRootVisible</H3><PRE>public void <B>setRootVisible</B>(boolean&nbsp;rootVisible)</PRE><DL><DD>Determines whether or not the root node from the TreeModel is visible.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setRootVisible(boolean)">setRootVisible</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rootVisible</CODE> - true if the root node of the tree is to be displayed<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#rootVisible"><CODE>AbstractLayoutCache.rootVisible</CODE></A></DL></DD></DL><HR><A NAME="setRowHeight(int)"><!-- --></A><H3>setRowHeight</H3><PRE>public void <B>setRowHeight</B>(int&nbsp;rowHeight)</PRE><DL><DD>Sets the height of each cell. If rowHeight is less than or equal to 0 this will throw an IllegalArgumentException.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#setRowHeight(int)">setRowHeight</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowHeight</CODE> - the height of each cell, in pixels</DL></DD></DL><HR><A NAME="getRowCount()"><!-- --></A><H3>getRowCount</H3><PRE>public int <B>getRowCount</B>()</PRE><DL><DD>Returns the number of visible rows.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#getRowCount()">getRowCount</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD></DL><HR><A NAME="invalidatePathBounds(javax.swing.tree.TreePath)"><!-- --></A><H3>invalidatePathBounds</H3><PRE>public void <B>invalidatePathBounds</B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A>&nbsp;path)</PRE><DL><DD>Does nothing, FixedHeightLayoutCache doesn't cache width, and that is all that could change.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#invalidatePathBounds(javax.swing.tree.TreePath)">invalidatePathBounds</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD></DL><HR><A NAME="invalidateSizes()"><!-- --></A><H3>invalidateSizes</H3><PRE>public void <B>invalidateSizes</B>()</PRE><DL><DD>Informs the TreeState that it needs to recalculate all the sizes it is referencing.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#invalidateSizes()">invalidateSizes</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD></DL><HR><A NAME="isExpanded(javax.swing.tree.TreePath)"><!-- --></A><H3>isExpanded</H3><PRE>public 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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html#isExpanded(javax.swing.tree.TreePath)">isExpanded</A></CODE> in class <CODE><A HREF="../../../javax/swing/tree/AbstractLayoutCache.html">AbstractLayoutCache</A></CODE></DL></DD></DL><HR><A NAME="getBounds(javax.swing.tree.TreePath, java.awt.Rectangle)"><!-- --></A><H3>getBounds</H3>

⌨️ 快捷键说明

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