jAudioFeatureExtractor
クラス SortingTableModelDecorator

java.lang.Object
  上位を拡張 jAudioFeatureExtractor.SortingTableModelDecorator
すべての実装されたインタフェース:
java.util.EventListener, javax.swing.event.TableModelListener, javax.swing.table.TableModel

public class SortingTableModelDecorator
extends java.lang.Object
implements javax.swing.event.TableModelListener, javax.swing.table.TableModel

Decorator model on top of normal feature selection model.

作成者:
Daniel McEnnis

コンストラクタの概要
SortingTableModelDecorator(javax.swing.table.TableModel base)
          Creates a new model that decorates the underlying model with sorting capabilities
 
メソッドの概要
 void addTableModelListener(javax.swing.event.TableModelListener l)
          passed directly to underlying model
 java.lang.Class<?> getColumnClass(int columnIndex)
          passed directly to underlying model
 int getColumnCount()
          passed directly to underlying model
 java.lang.String getColumnName(int columnIndex)
          passed directly to underlying model
 int getRealPrefferedWidth(javax.swing.JTable t, int col)
          This method calculates a reasonable preffered width by calculating the width of both the header and each element of the table.
 int getRowCount()
          passed directly to underlying model
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          passed to underlying model with a translated row index
 boolean isCellEditable(int rowIndex, int columnIndex)
          passed directly to underlying model
 void removeTableModelListener(javax.swing.event.TableModelListener l)
          passed directly to underlying model
 void resetIndeci()
          This method restores the indeci to their default encoding.
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          passed to underlying model with a translated row index.
 void sort(int index)
          Sorts the rows using quicksort
 void tableChanged(javax.swing.event.TableModelEvent e)
          Method for handling generic changes.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SortingTableModelDecorator

public SortingTableModelDecorator(javax.swing.table.TableModel base)
Creates a new model that decorates the underlying model with sorting capabilities

パラメータ:
base - Underlying model this model is built on top of.
メソッドの詳細

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Method for handling generic changes. Since these changes could involve creation or deletion of features from the table, a the table is completely reset to the default order.

定義:
インタフェース javax.swing.event.TableModelListener 内の tableChanged

getRowCount

public int getRowCount()
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の getRowCount

getColumnCount

public int getColumnCount()
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の getColumnCount

getColumnName

public java.lang.String getColumnName(int columnIndex)
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の getColumnName

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の getColumnClass

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の isCellEditable

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
passed to underlying model with a translated row index

定義:
インタフェース javax.swing.table.TableModel 内の getValueAt

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
passed to underlying model with a translated row index.

定義:
インタフェース javax.swing.table.TableModel 内の setValueAt

addTableModelListener

public void addTableModelListener(javax.swing.event.TableModelListener l)
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の addTableModelListener

removeTableModelListener

public void removeTableModelListener(javax.swing.event.TableModelListener l)
passed directly to underlying model

定義:
インタフェース javax.swing.table.TableModel 内の removeTableModelListener

sort

public void sort(int index)
Sorts the rows using quicksort

パラメータ:
index - Which column is being sorted

resetIndeci

public void resetIndeci()
This method restores the indeci to their default encoding.


getRealPrefferedWidth

public int getRealPrefferedWidth(javax.swing.JTable t,
                                 int col)
This method calculates a reasonable preffered width by calculating the width of both the header and each element of the table.

パラメータ:
t - link to the JTable associated with this model
col - which column's width is bein calcualted.
戻り値:
Preferred width of the column.