📄 basictreeui.html
字号:
<B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#BasicTreeUI()">BasicTreeUI</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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#cancelEditing(javax.swing.JTree)">cancelEditing</A></B>(<A HREF="../../../../javax/swing/JTree.html">JTree</A> tree)</CODE><BR> Cancels the current editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#checkForClickInExpandControl(javax.swing.tree.TreePath, int, int)">checkForClickInExpandControl</A></B>(<A HREF="../../../../javax/swing/tree/TreePath.html">TreePath</A> path, int mouseX, int mouseY)</CODE><BR> If the <code>mouseX</code> and <code>mouseY</code> are in the expand/collapse region of the <code>row</code>, this will toggle the row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeEditing()">completeEditing</A></B>()</CODE><BR> Messages to stop the editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeEditing(boolean, boolean, boolean)">completeEditing</A></B>(boolean messageStop, boolean messageCancel, boolean messageTree)</CODE><BR> Stops the editing session.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeUIInstall()">completeUIInstall</A></B>()</CODE><BR> Invoked from installUI after all the defaults/listeners have been installed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#completeUIUninstall()">completeUIUninstall</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#configureLayoutCache()">configureLayoutCache</A></B>()</CODE><BR> Resets the TreeState instance based on the tree we're providing the look and feel for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/event/CellEditorListener.html">CellEditorListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createCellEditorListener()">createCellEditorListener</A></B>()</CODE><BR> Creates a listener to handle events from the current editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/CellRendererPane.html">CellRendererPane</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createCellRendererPane()">createCellRendererPane</A></B>()</CODE><BR> Returns the renderer pane that renderer components are placed in.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/event/ComponentListener.html">ComponentListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createComponentListener()">createComponentListener</A></B>()</CODE><BR> Creates and returns a new ComponentHandler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/tree/TreeCellEditor.html">TreeCellEditor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createDefaultCellEditor()">createDefaultCellEditor</A></B>()</CODE><BR> Creates a default cell editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/tree/TreeCellRenderer.html">TreeCellRenderer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createDefaultCellRenderer()">createDefaultCellRenderer</A></B>()</CODE><BR> Returns the default cell renderer that is used to do the stamping of each node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/event/FocusListener.html">FocusListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createFocusListener()">createFocusListener</A></B>()</CODE><BR> Creates a listener that is responsible for updating the display when focus is lost/gained.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/event/KeyListener.html">KeyListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createKeyListener()">createKeyListener</A></B>()</CODE><BR> Creates the listener reponsible for getting key events from the tree.</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.html">AbstractLayoutCache</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createLayoutCache()">createLayoutCache</A></B>()</CODE><BR> Creates the object responsible for managing what is expanded, as well as the size of nodes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/event/MouseListener.html">MouseListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createMouseListener()">createMouseListener</A></B>()</CODE><BR> Creates the listener responsible for updating the selection based on mouse events.</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/plaf/basic/BasicTreeUI.html#createNodeDimensions()">createNodeDimensions</A></B>()</CODE><BR> Creates an instance of NodeDimensions that is able to determine the size of a given node in the tree.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createPropertyChangeListener()">createPropertyChangeListener</A></B>()</CODE><BR> Creates a listener that is responsible that updates the UI based on how the tree changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createSelectionModelPropertyChangeListener()">createSelectionModelPropertyChangeListener</A></B>()</CODE><BR> Creates the listener responsible for getting property change events from the selection model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/event/TreeExpansionListener.html">TreeExpansionListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeExpansionListener()">createTreeExpansionListener</A></B>()</CODE><BR> Creates and returns the object responsible for updating the treestate when nodes expanded state changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/event/TreeModelListener.html">TreeModelListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeModelListener()">createTreeModelListener</A></B>()</CODE><BR> Returns a listener that can update the tree when the model changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/event/TreeSelectionListener.html">TreeSelectionListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createTreeSelectionListener()">createTreeSelectionListener</A></B>()</CODE><BR> Creates the listener that updates the display based on selection change methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#createUI(javax.swing.JComponent)">createUI</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> x)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#drawCentered(java.awt.Component, java.awt.Graphics, javax.swing.Icon, int, int)">drawCentered</A></B>(<A HREF="../../../../java/awt/Component.html">Component</A> c, <A HREF="../../../../java/awt/Graphics.html">Graphics</A> graphics, <A HREF="../../../../javax/swing/Icon.html">Icon</A> icon, int x, int y)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTreeUI.html#drawDashedHorizontalLine(java.awt.Graphics, int, int, int)">drawDashedHorizontalLine</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int y, int x1, int x2)</CODE><BR> </TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -