📄 arffsortedtablemodel.html
字号:
<BR> renames the attribute at the given col index</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#setInstances(weka.core.Instances)">setInstances</A></B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data)</CODE><BR> sets the data</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#setNotificationEnabled(boolean)">setNotificationEnabled</A></B>(boolean enabled)</CODE><BR> sets whether the notification of changes is enabled</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean value)</CODE><BR> sets whether the model is read-only</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#setUndoEnabled(boolean)">setUndoEnabled</A></B>(boolean enabled)</CODE><BR> sets whether undo support is enabled</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#sortInstances(int)">sortInstances</A></B>(int columnIndex)</CODE><BR> sorts the instances via the given attribute</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="../../../weka/gui/arffviewer/ArffSortedTableModel.html#undo()">undo</A></B>()</CODE><BR> undoes the last action</TD></TR></TABLE> <A NAME="methods_inherited_from_class_weka.gui.SortedTableModel"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.gui.<A HREF="../../../weka/gui/SortedTableModel.html" title="class in weka.gui">SortedTableModel</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../weka/gui/SortedTableModel.html#addMouseListenerToHeader(javax.swing.JTable)">addMouseListenerToHeader</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getActualRow(int)">getActualRow</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getColumnClass(int)">getColumnClass</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getColumnCount()">getColumnCount</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getColumnName(int)">getColumnName</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getModel()">getModel</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getRowCount()">getRowCount</A>, <A HREF="../../../weka/gui/SortedTableModel.html#getValueAt(int, int)">getValueAt</A>, <A HREF="../../../weka/gui/SortedTableModel.html#isCellEditable(int, int)">isCellEditable</A>, <A HREF="../../../weka/gui/SortedTableModel.html#isSorted()">isSorted</A>, <A HREF="../../../weka/gui/SortedTableModel.html#setModel(javax.swing.table.TableModel)">setModel</A>, <A HREF="../../../weka/gui/SortedTableModel.html#setValueAt(java.lang.Object, int, int)">setValueAt</A>, <A HREF="../../../weka/gui/SortedTableModel.html#sort(int)">sort</A>, <A HREF="../../../weka/gui/SortedTableModel.html#sort(int, boolean)">sort</A>, <A HREF="../../../weka/gui/SortedTableModel.html#tableChanged(javax.swing.event.TableModelEvent)">tableChanged</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.table.AbstractTableModel"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.swing.table.AbstractTableModel</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ArffSortedTableModel(java.lang.String)"><!-- --></A><H3>ArffSortedTableModel</H3><PRE>public <B>ArffSortedTableModel</B>(java.lang.String filename)</PRE><DL><DD>initializes the sorter w/o a model, but loads the given file and creates from that a model<P><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to load</DL></DL><HR><A NAME="ArffSortedTableModel(weka.core.Instances)"><!-- --></A><H3>ArffSortedTableModel</H3><PRE>public <B>ArffSortedTableModel</B>(<A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data)</PRE><DL><DD>initializes the sorter w/o a model, but uses the given data to create a model from that<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to use</DL></DL><HR><A NAME="ArffSortedTableModel(javax.swing.table.TableModel)"><!-- --></A><H3>ArffSortedTableModel</H3><PRE>public <B>ArffSortedTableModel</B>(javax.swing.table.TableModel model)</PRE><DL><DD>initializes the sorter with the given model<P><DL><DT><B>Parameters:</B><DD><CODE>model</CODE> - the model to use</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="isNotificationEnabled()"><!-- --></A><H3>isNotificationEnabled</H3><PRE>public boolean <B>isNotificationEnabled</B>()</PRE><DL><DD>returns whether the notification of changes is enabled<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if notification of changes is enabled</DL></DD></DL><HR><A NAME="setNotificationEnabled(boolean)"><!-- --></A><H3>setNotificationEnabled</H3><PRE>public void <B>setNotificationEnabled</B>(boolean enabled)</PRE><DL><DD>sets whether the notification of changes is enabled<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - enables/disables the notification</DL></DD></DL><HR><A NAME="isUndoEnabled()"><!-- --></A><H3>isUndoEnabled</H3><PRE>public boolean <B>isUndoEnabled</B>()</PRE><DL><DD>returns whether undo support is enabled<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Undoable.html#isUndoEnabled()">isUndoEnabled</A></CODE> in interface <CODE><A HREF="../../../weka/core/Undoable.html" title="interface in weka.core">Undoable</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if undo support is enabled</DL></DD></DL><HR><A NAME="setUndoEnabled(boolean)"><!-- --></A><H3>setUndoEnabled</H3><PRE>public void <B>setUndoEnabled</B>(boolean enabled)</PRE><DL><DD>sets whether undo support is enabled<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/Undoable.html#setUndoEnabled(boolean)">setUndoEnabled</A></CODE> in interface <CODE><A HREF="../../../weka/core/Undoable.html" title="interface in weka.core">Undoable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - whether to enable/disable undo support</DL></DD></DL><HR><A NAME="isReadOnly()"><!-- --></A><H3>isReadOnly</H3><PRE>public boolean <B>isReadOnly</B>()</PRE><DL><DD>returns whether the model is read-only<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if model is read-only</DL></DD></DL><HR><A NAME="setReadOnly(boolean)"><!-- --></A><H3>setReadOnly</H3><PRE>public void <B>setReadOnly</B>(boolean value)</PRE><DL><DD>sets whether the model is read-only<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - if true the model is set to read-only</DL></DD></DL><HR><A NAME="getInstancesValueAt(int, int)"><!-- --></A><H3>getInstancesValueAt</H3><PRE>public double <B>getInstancesValueAt</B>(int rowIndex, int columnIndex)</PRE><DL><DD>returns the double value of the underlying Instances object at the given position, -1 if out of bounds<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowIndex</CODE> - the row index<DD><CODE>columnIndex</CODE> - the column index<DT><B>Returns:</B><DD>the underlying value in the Instances object</DL></DD></DL><HR><A NAME="getModelValueAt(int, int)"><!-- --></A><H3>getModelValueAt</H3><PRE>public java.lang.Object <B>getModelValueAt</B>(int rowIndex, int columnIndex)</PRE><DL><DD>returns the value at the given position<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowIndex</CODE> - the row index<DD><CODE>columnIndex</CODE> - the column index<DT><B>Returns:</B><DD>the value of the model at the given position</DL></DD></DL><HR><A NAME="getType(int)"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>(int columnIndex)</PRE><DL><DD>returns the TYPE of the attribute at the given position<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>columnIndex</CODE> - the index of the column<DT><B>Returns:</B><DD>the attribute type</DL></DD></DL><HR><A NAME="getType(int, int)"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>(int rowIndex, int columnIndex)</PRE><DL><DD>returns the TYPE of the attribute at the given position<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowIndex</CODE> - the index of the row<DD><CODE>columnIndex</CODE> - the index of the column<DT><B>Returns:</B><DD>the attribute type</DL></DD></DL><HR><A NAME="deleteAttributeAt(int)"><!-- --></A><H3>deleteAttributeAt</H3><PRE>public void <B>deleteAttributeAt</B>(int columnIndex)</PRE><DL><DD>deletes the attribute at the given col index<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>columnIndex</CODE> - the index of the attribute to delete</DL></DD></DL><HR><A NAME="deleteAttributes(int[])"><!-- --></A><H3>deleteAttributes</H3><PRE>public void <B>deleteAttributes</B>(int[] columnIndices)</PRE><DL><DD>deletes the attributes at the given indices<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>columnIndices</CODE> - the column indices</DL></DD></DL><HR><A NAME="renameAttributeAt(int, java.lang.String)"><!-- --></A><H3>renameAttributeAt</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -