edu.sc.seis.fissuresUtil.display
Class EventTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by edu.sc.seis.fissuresUtil.display.EventTableModel
All Implemented Interfaces:
EventLoadedListener, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel

public class EventTableModel
extends javax.swing.table.AbstractTableModel
implements EventLoadedListener

EventTableModel.java Created: Mon Jan 8 15:59:05 2001

See Also:
Serialized Form

Field Summary
protected  java.util.WeakHashMap backgrounded
           
protected  java.util.WeakHashMap cachedEvents
           
protected static int CATALOG
           
protected static int CATALOGSIZE
           
protected  java.lang.String[] columnNames
           
protected static int CONTRIBUTOR
           
protected static int CONTRIBUTORSIZE
           
protected static int DEPTH
           
protected  java.text.NumberFormat depthFormat
           
protected static int DEPTHSIZE
           
protected  edu.iris.Fissures.IfEvent.EventAccessOperations[] events
           
protected static int FEREGION
           
protected static ParseRegions FERegions
           
protected static int FEREGIONSIZE
           
protected static int LATITUDE
           
protected static int LATITUDESIZE
           
protected static int LONGITUDE
           
protected static int LONGITUDESIZE
           
protected static int MAGVALUE
           
protected static int MAGVALUESIZE
           
protected static int NAME
           
protected static int NAMESIZE
           
protected static int ORIGINTIME
           
protected static int ORIGINTIMESIZE
           
protected  java.util.HashMap rowNumber
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
EventTableModel()
          Creates a table model without any events.
EventTableModel(ProxyEventAccessOperations[] events)
           
 
Method Summary
 void addEventDataListener(EventDataListener edl)
           
 void appendEvents(edu.iris.Fissures.IfEvent.EventAccessOperations[] appendEvents)
           
 void eventLoaded(ProxyEventAccessOperations cache)
           
 edu.iris.Fissures.IfEvent.EventAccessOperations[] getAllEvents()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 edu.iris.Fissures.IfEvent.EventAccessOperations getEventForRow(int row)
           
 int getRowCount()
           
 int getRowForEvent(edu.iris.Fissures.IfEvent.EventAccessOperations event)
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isRowCached(int row)
           
 void removeEventDataListener(EventDataListener edl)
           
 void updateEvents(edu.iris.Fissures.IfEvent.EventAccessOperations[] updateEvents)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FERegions

protected static ParseRegions FERegions

events

protected edu.iris.Fissures.IfEvent.EventAccessOperations[] events

cachedEvents

protected java.util.WeakHashMap cachedEvents

backgrounded

protected java.util.WeakHashMap backgrounded

rowNumber

protected java.util.HashMap rowNumber

depthFormat

protected java.text.NumberFormat depthFormat

LATITUDE

protected static final int LATITUDE
See Also:
Constant Field Values

LONGITUDE

protected static final int LONGITUDE
See Also:
Constant Field Values

DEPTH

protected static final int DEPTH
See Also:
Constant Field Values

ORIGINTIME

protected static final int ORIGINTIME
See Also:
Constant Field Values

MAGVALUE

protected static final int MAGVALUE
See Also:
Constant Field Values

CATALOG

protected static final int CATALOG
See Also:
Constant Field Values

CONTRIBUTOR

protected static final int CONTRIBUTOR
See Also:
Constant Field Values

NAME

protected static final int NAME
See Also:
Constant Field Values

FEREGION

protected static final int FEREGION
See Also:
Constant Field Values

LATITUDESIZE

protected static final int LATITUDESIZE
See Also:
Constant Field Values

LONGITUDESIZE

protected static final int LONGITUDESIZE
See Also:
Constant Field Values

DEPTHSIZE

protected static final int DEPTHSIZE
See Also:
Constant Field Values

ORIGINTIMESIZE

protected static final int ORIGINTIMESIZE
See Also:
Constant Field Values

MAGVALUESIZE

protected static final int MAGVALUESIZE
See Also:
Constant Field Values

CATALOGSIZE

protected static final int CATALOGSIZE
See Also:
Constant Field Values

CONTRIBUTORSIZE

protected static final int CONTRIBUTORSIZE
See Also:
Constant Field Values

NAMESIZE

protected static final int NAMESIZE
See Also:
Constant Field Values

FEREGIONSIZE

protected static final int FEREGIONSIZE
See Also:
Constant Field Values

columnNames

protected java.lang.String[] columnNames
Constructor Detail

EventTableModel

public EventTableModel()
Creates a table model without any events. Events can be added later with the updateEvents method.


EventTableModel

public EventTableModel(ProxyEventAccessOperations[] events)
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Specified by:
getValueAt in interface javax.swing.table.TableModel

getEventForRow

public edu.iris.Fissures.IfEvent.EventAccessOperations getEventForRow(int row)

isRowCached

public boolean isRowCached(int row)

updateEvents

public void updateEvents(edu.iris.Fissures.IfEvent.EventAccessOperations[] updateEvents)

appendEvents

public void appendEvents(edu.iris.Fissures.IfEvent.EventAccessOperations[] appendEvents)

eventLoaded

public void eventLoaded(ProxyEventAccessOperations cache)
Specified by:
eventLoaded in interface EventLoadedListener

addEventDataListener

public void addEventDataListener(EventDataListener edl)

removeEventDataListener

public void removeEventDataListener(EventDataListener edl)

getAllEvents

public edu.iris.Fissures.IfEvent.EventAccessOperations[] getAllEvents()

getRowForEvent

public int getRowForEvent(edu.iris.Fissures.IfEvent.EventAccessOperations event)