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

📄 genericobjectnode.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DL><DT><B>Parameters:</B><DD><CODE>panel</CODE> - the reference to the parent panel for calls to JDialog<DD><CODE>value</CODE> - the value stored at this tree node<DD><CODE>genericObjectEditor</CODE> - the GenericObjectEditor for this object<DD><CODE>toolTipText</CODE> - the tipText to be displayed for this object</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setTree(javax.swing.JTree)"><!-- --></A><H3>setTree</H3><PRE>public void <B>setTree</B>(javax.swing.JTree&nbsp;tree)</PRE><DL><DD>It seems kind of dumb that the reference to the tree model is passed in seperately - but know that this is actually necessary.  There is a really  weird chicken before the egg problem.  You cannot create a TreeModel without giving it its root node.  However, the nodes in your tree can't update the  structure of the tree unless they have a reference to the TreeModel.  So in  the end this was the only compromise that I could get to work well<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tree</CODE> - the tree to use</DL></DD></DL><HR><A NAME="getTree()"><!-- --></A><H3>getTree</H3><PRE>public javax.swing.JTree <B>getTree</B>()</PRE><DL><DD>returns the current tree<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current tree</DL></DD></DL><HR><A NAME="getEditor()"><!-- --></A><H3>getEditor</H3><PRE>public <A HREF="../../../../weka/gui/GenericObjectEditor.html" title="class in weka.gui">GenericObjectEditor</A> <B>getEditor</B>()</PRE><DL><DD>A getter for the GenericObjectEditor for this node<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the editor</DL></DD></DL><HR><A NAME="getHelpText()"><!-- --></A><H3>getHelpText</H3><PRE>public java.lang.StringBuffer <B>getHelpText</B>()</PRE><DL><DD>getter for the tooltip text<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tooltip text</DL></DD></DL><HR><A NAME="getToolTipText()"><!-- --></A><H3>getToolTipText</H3><PRE>public java.lang.String <B>getToolTipText</B>()</PRE><DL><DD>getter for the tooltip text<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tooltip text</DL></DD></DL><HR><A NAME="getObject()"><!-- --></A><H3>getObject</H3><PRE>public java.lang.Object <B>getObject</B>()</PRE><DL><DD>getter for this node's object<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the node's object</DL></DD></DL><HR><A NAME="setObject(java.lang.Object)"><!-- --></A><H3>setObject</H3><PRE>public void <B>setObject</B>(java.lang.Object&nbsp;newValue)</PRE><DL><DD>setter for this nodes object<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - sets the new object</DL></DD></DL><HR><A NAME="setUserObject(java.lang.Object)"><!-- --></A><H3>setUserObject</H3><PRE>public void <B>setUserObject</B>(java.lang.Object&nbsp;o)</PRE><DL><DD>this is a simple filter for the setUserObject method.  We basically don't want null values to be passed in.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setUserObject</CODE> in interface <CODE>javax.swing.tree.MutableTreeNode</CODE><DT><B>Overrides:</B><DD><CODE>setUserObject</CODE> in class <CODE>javax.swing.tree.DefaultMutableTreeNode</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to set</DL></DD></DL><HR><A NAME="getParentPanel()"><!-- --></A><H3>getParentPanel</H3><PRE>public javax.swing.JPanel <B>getParentPanel</B>()</PRE><DL><DD>getter for the parent panel<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the parent panel</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>returns always null<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>javax.swing.tree.DefaultMutableTreeNode</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>always null</DL></DD></DL><HR><A NAME="propertyChange(java.beans.PropertyChangeEvent)"><!-- --></A><H3>propertyChange</H3><PRE>public void <B>propertyChange</B>(java.beans.PropertyChangeEvent&nbsp;evt)</PRE><DL><DD>This implements the PropertyChangeListener for this node that gets  registered with its Editor.  All we really have to do is change the  Object value stored internally at this node when its editor says the  value changed.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>propertyChange</CODE> in interface <CODE>java.beans.PropertyChangeListener</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evt</CODE> - the event</DL></DD></DL><HR><A NAME="updateTree()"><!-- --></A><H3>updateTree</H3><PRE>public void <B>updateTree</B>()</PRE><DL><DD>This method uses introspection to programatically discover all of  the parameters for this generic object.  For each one of them it uses the TreeModel reference to create a new subtree to represent that parameter and its value ranges.  Note that all of these nodes are PropertyNodes which themselves hold the logic of figuring out what type of parameter it is they are representing and thus what  type of subtree to build. <p/>  We need to be careful because this was molded from the code inside of  the PropertySheetPanel class.  Which means that we are wide open to copy/paste problems.  In the future, when that code changes to  adapt to other changes in Weka then this could easily become broken.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getValues()"><!-- --></A><H3>getValues</H3><PRE>public java.util.Vector <B>getValues</B>()</PRE><DL><DD>This method iterates over all of the child nodes of this  GenericObjectNode and requests the verious sets of values that the user has presumably specified.  Once these sets of values are<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a Vector consisting of all parameter combinations</DL></DD></DL><HR><A NAME="combineAllValues(java.util.Vector, java.util.Vector)"><!-- --></A><H3>combineAllValues</H3><PRE>public void <B>combineAllValues</B>(java.util.Vector&nbsp;previouslySelected,                             java.util.Vector&nbsp;remainingValues)</PRE><DL><DD>This method is responsible for returning all possible values through  a recursive loop.  When the recursion terminates that means that there are no more parameter sets to branch out through so all we have to do is save the current Vector in the working set of combinations.  Otherwise we iterate through all  possible values left in the next set of parameter values and recursively call this function.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>previouslySelected</CODE> - stores the values chosen in this branch of the recursion<DD><CODE>remainingValues</CODE> - the sets of values left</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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="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-all.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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/DefaultNode.html" title="class in weka.gui.ensembleLibraryEditor.tree"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/GenericObjectNodeEditor.html" title="class in weka.gui.ensembleLibraryEditor.tree"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/gui/ensembleLibraryEditor/tree/GenericObjectNode.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="GenericObjectNode.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.tree.DefaultMutableTreeNode">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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