📄 defaulttreecellrenderer.html
字号:
<BR> Returns the background color to be used for non selected nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getBackgroundSelectionColor()">getBackgroundSelectionColor</A></B>()</CODE><BR> Returns the color to use for the background if node is selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getBorderSelectionColor()">getBorderSelectionColor</A></B>()</CODE><BR> Returns the color the border is drawn.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getClosedIcon()">getClosedIcon</A></B>()</CODE><BR> Returns the icon used to represent non-leaf nodes that are not expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getDefaultClosedIcon()">getDefaultClosedIcon</A></B>()</CODE><BR> Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getDefaultLeafIcon()">getDefaultLeafIcon</A></B>()</CODE><BR> Returns the default icon, for the current laf, that is used to represent leaf nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getDefaultOpenIcon()">getDefaultOpenIcon</A></B>()</CODE><BR> Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getLeafIcon()">getLeafIcon</A></B>()</CODE><BR> Returns the icon used to represent leaf nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Icon.html">Icon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getOpenIcon()">getOpenIcon</A></B>()</CODE><BR> Returns the icon used to represent non-leaf nodes that are expanded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getPreferredSize()">getPreferredSize</A></B>()</CODE><BR> Overrides <code>JComponent.getPreferredSize</code> to return slightly wider preferred size value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getTextNonSelectionColor()">getTextNonSelectionColor</A></B>()</CODE><BR> Returns the color the text is drawn with when the node isn't selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getTextSelectionColor()">getTextSelectionColor</A></B>()</CODE><BR> Returns the color the text is drawn with when the node is selected.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Component.html">Component</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean)">getTreeCellRendererComponent</A></B>(<A HREF="../../../javax/swing/JTree.html">JTree</A> tree, <A HREF="../../../java/lang/Object.html">Object</A> value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)</CODE><BR> Configures the renderer based on the passed in components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#paint(java.awt.Graphics)">paint</A></B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Paints the value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#repaint(long, int, int, int, int)">repaint</A></B>(long tm, int x, int y, int width, int height)</CODE><BR> Overridden for performance reasons.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/tree/DefaultTreeCellRenderer.html#repaint(java.awt.Rectangle)">repaint</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -