org.jscience.physics.nuclear.kinematics.nuclear.gui.table
Class KinematicsOutputTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.jscience.physics.nuclear.kinematics.nuclear.gui.table.KinematicsOutputTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, ReactionTableClient

public class KinematicsOutputTableModel
extends javax.swing.table.AbstractTableModel
implements ReactionTableClient

Data model for KinematicsOutputTable.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
KinematicsOutputTableModel(ReactionTable rt, double[] beamEnergies, double[] residExcite, double[] labAngles)
          Creates a new KinematicsOutputTableModel object.
 
Method Summary
 java.lang.Class getColumnClass(int c)
          DOCUMENT ME!
 int getColumnCount()
          DOCUMENT ME!
 java.lang.String getColumnName(int c)
          DOCUMENT ME!
 int getRowCount()
          DOCUMENT ME!
 java.lang.Object getValueAt(int r, int c)
          DOCUMENT ME!
 boolean isCellEditable(int r, int c)
          DOCUMENT ME!
 void setBeamEnergies(double[] be)
          DOCUMENT ME!
 void setLabAngles(double[] la)
          DOCUMENT ME!
 void setReaction(Nucleus target, Nucleus beam, Nucleus projectile)
          Sets reaction along with target thickness in ug/cm^2.
 void setResidualExcitations(double[] re)
          DOCUMENT ME!
 void setTargetThickness(double thickness)
          DOCUMENT ME!
 void setValueAt(java.lang.Object value, int r, int c)
          DOCUMENT ME!
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KinematicsOutputTableModel

public KinematicsOutputTableModel(ReactionTable rt,
                                  double[] beamEnergies,
                                  double[] residExcite,
                                  double[] labAngles)
                           throws KinematicsException,
                                  NuclearException
Creates a new KinematicsOutputTableModel object.

Parameters:
rt - DOCUMENT ME!
beamEnergies - DOCUMENT ME!
residExcite - DOCUMENT ME!
labAngles - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!
Method Detail

setReaction

public void setReaction(Nucleus target,
                        Nucleus beam,
                        Nucleus projectile)
                 throws KinematicsException,
                        NuclearException
Sets reaction along with target thickness in ug/cm^2.

Specified by:
setReaction in interface ReactionTableClient
Parameters:
target - DOCUMENT ME!
beam - DOCUMENT ME!
projectile - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!

setTargetThickness

public void setTargetThickness(double thickness)
                        throws KinematicsException,
                               NuclearException
DOCUMENT ME!

Parameters:
thickness - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!

setBeamEnergies

public void setBeamEnergies(double[] be)
                     throws KinematicsException,
                            NuclearException
DOCUMENT ME!

Parameters:
be - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!

setResidualExcitations

public void setResidualExcitations(double[] re)
                            throws KinematicsException,
                                   NuclearException
DOCUMENT ME!

Parameters:
re - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!

setLabAngles

public void setLabAngles(double[] la)
                  throws KinematicsException,
                         NuclearException
DOCUMENT ME!

Parameters:
la - DOCUMENT ME!
Throws:
KinematicsException - DOCUMENT ME!
NuclearException - DOCUMENT ME!

getRowCount

public int getRowCount()
DOCUMENT ME!

Specified by:
getRowCount in interface javax.swing.table.TableModel
Returns:
DOCUMENT ME!

getColumnCount

public int getColumnCount()
DOCUMENT ME!

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Returns:
DOCUMENT ME!

getColumnClass

public java.lang.Class getColumnClass(int c)
DOCUMENT ME!

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
c - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumnName

public java.lang.String getColumnName(int c)
DOCUMENT ME!

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
c - DOCUMENT ME!
Returns:
DOCUMENT ME!

isCellEditable

public boolean isCellEditable(int r,
                              int c)
DOCUMENT ME!

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
r - DOCUMENT ME!
c - DOCUMENT ME!
Returns:
DOCUMENT ME!

getValueAt

public java.lang.Object getValueAt(int r,
                                   int c)
DOCUMENT ME!

Specified by:
getValueAt in interface javax.swing.table.TableModel
Parameters:
r - DOCUMENT ME!
c - DOCUMENT ME!
Returns:
DOCUMENT ME!

setValueAt

public void setValueAt(java.lang.Object value,
                       int r,
                       int c)
DOCUMENT ME!

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
value - DOCUMENT ME!
r - DOCUMENT ME!
c - DOCUMENT ME!