📄 ensemblelibraryeditor.html
字号:
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - a Library object to be edited</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Object <B>getValue</B>()</PRE><DL><DD>Gets the cost matrix that is being edited.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the edited CostMatrix object</DL></DD></DL><HR><A NAME="isPaintable()"><!-- --></A><H3>isPaintable</H3><PRE>public boolean <B>isPaintable</B>()</PRE><DL><DD>Indicates whether the object can be represented graphically. In this case it can.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>isPaintable</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="paintValue(java.awt.Graphics, java.awt.Rectangle)"><!-- --></A><H3>paintValue</H3><PRE>public void <B>paintValue</B>(java.awt.Graphics gfx, java.awt.Rectangle box)</PRE><DL><DD>Paints a graphical representation of the Object. For the ensemble library it prints out the working directory as well as the number of models in the library<P><DD><DL><DT><B>Specified by:</B><DD><CODE>paintValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>gfx</CODE> - the graphics context to draw the representation to<DD><CODE>box</CODE> - the bounds within which the representation should fit.</DL></DD></DL><HR><A NAME="getJavaInitializationString()"><!-- --></A><H3>getJavaInitializationString</H3><PRE>public java.lang.String <B>getJavaInitializationString</B>()</PRE><DL><DD>Returns the Java code that generates an object the same as the one being edited. Unfortunately this can't be done in a single line of code, so the code returned will only build a default cost matrix of the same size.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getJavaInitializationString</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the initialization string</DL></DD></DL><HR><A NAME="getAsText()"><!-- --></A><H3>getAsText</H3><PRE>public java.lang.String <B>getAsText</B>()</PRE><DL><DD>Some objects can be represented as text, but a library cannot.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getAsText</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>null</DL></DD></DL><HR><A NAME="setAsText(java.lang.String)"><!-- --></A><H3>setAsText</H3><PRE>public void <B>setAsText</B>(java.lang.String text)</PRE><DL><DD>Some objects can be represented as text, but a library cannot.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setAsText</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - ignored<DT><B>Throws:</B><DD><CODE>always</CODE> - throws an IllegalArgumentException</DL></DD></DL><HR><A NAME="getTags()"><!-- --></A><H3>getTags</H3><PRE>public java.lang.String[] <B>getTags</B>()</PRE><DL><DD>Some objects can return tags, but a cost matrix cannot.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getTags</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>null</DL></DD></DL><HR><A NAME="getCustomEditor()"><!-- --></A><H3>getCustomEditor</H3><PRE>public java.awt.Component <B>getCustomEditor</B>()</PRE><DL><DD>Gets a GUI component with which the user can edit the cost matrix.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>getCustomEditor</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an editor GUI component</DL></DD></DL><HR><A NAME="supportsCustomEditor()"><!-- --></A><H3>supportsCustomEditor</H3><PRE>public boolean <B>supportsCustomEditor</B>()</PRE><DL><DD>Indicates whether the library can be edited in a GUI, which it can.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>supportsCustomEditor</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(java.beans.PropertyChangeListener listener)</PRE><DL><DD>Adds an object to the list of those that wish to be informed when the library changes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>addPropertyChangeListener</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - a new listener to add to the list</DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(java.beans.PropertyChangeListener listener)</PRE><DL><DD>Removes an object from the list of those that wish to be informed when the cost matrix changes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>removePropertyChangeListener</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to remove from the list</DL></DD></DL><HR><A NAME="getEditorValue(java.lang.Object)"><!-- --></A><H3>getEditorValue</H3><PRE>public static java.lang.Object <B>getEditorValue</B>(java.lang.Object source)</PRE><DL><DD>This method handles the different object editor types in weka to obtain their current values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - an Editor<DT><B>Returns:</B><DD>the value of the editor</DL></DD></DL><HR><A NAME="getDefaultRenderer(java.beans.PropertyEditor)"><!-- --></A><H3>getDefaultRenderer</H3><PRE>public static java.awt.Component <B>getDefaultRenderer</B>(java.beans.PropertyEditor nodeEditor)</PRE><DL><DD>This is a helper function that creates a renderer for Default Objects. These are basically objects that are not numeric, nominal, or generic objects. These are objects that we don't want to do anything special with and just display their values as normal. We simply create the editor the same way that they would have been created in the PropertySheetPanel class.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodeEditor</CODE> - the editor created for the defaultNode<DT><B>Returns:</B><DD>the Component to dispaly the defaultNode</DL></DD></DL><HR><A NAME="createGenericObjectRenderer(weka.gui.GenericObjectEditor)"><!-- --></A><H3>createGenericObjectRenderer</H3><PRE>public static java.awt.Component <B>createGenericObjectRenderer</B>(<A HREF="../../weka/gui/GenericObjectEditor.html" title="class in weka.gui">GenericObjectEditor</A> classifierEditor)</PRE><DL><DD>This is a helper function that creates a renderer for GenericObjects<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>classifierEditor</CODE> - the editor created for this<DT><B>Returns:</B><DD>object renderer</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>This is a simple main method that lets you run a LibraryEditor on its own without having to deal with the Explorer, etc... This is useful only for building model lists.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - the commandline arguments</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> </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="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-all.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> <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> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/gui/DatabaseConnectionDialog.html" title="class in weka.gui"><B>PREV CLASS</B></A> <A HREF="../../weka/gui/EnsembleSelectionLibraryEditor.html" title="class in weka.gui"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/gui/EnsembleLibraryEditor.html" target="_top"><B>FRAMES</B></A> <A HREF="EnsembleLibraryEditor.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -