📄 costmatrixeditor.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setValue(java.lang.Object)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(java.lang.Object value)</PRE><DL><DD>Sets the value of the CostMatrix to be edited.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setValue</CODE> in interface <CODE>java.beans.PropertyEditor</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - a CostMatrix 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 cost matrix it prints out the text "X x X matrix", where X is the size of the matrix.<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 cost matrix 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 cost matrix 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>java.lang.IllegalArgumentException</CODE> - always 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 cost matrix 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 cost matrix 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><!-- ========= 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/ConverterFileChooser.html" title="class in weka.gui"><B>PREV CLASS</B></A> <A HREF="../../weka/gui/CustomPanelSupplier.html" title="interface in weka.gui"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/gui/CostMatrixEditor.html" target="_top"><B>FRAMES</B></A> <A HREF="CostMatrixEditor.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 + -