simtools.logging.ui
Class LoggingBufferTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by simtools.logging.ui.AbstractLoggingTableModel
          extended by simtools.logging.ui.LoggingBufferTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class LoggingBufferTableModel
extends AbstractLoggingTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class simtools.logging.ui.AbstractLoggingTableModel
LEVEL_SCALE_FACTOR, levelNames, menuResources, timeFormatter
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
LoggingBufferTableModel(int size, MenuResourceBundle resources)
           
LoggingBufferTableModel(LoggingEntryByteBuffer buffer, MenuResourceBundle resources)
           
 
Method Summary
 void clearLogs()
          Method clearLogs
Summary:
Use this method to clear the logs.
 int getLevel(int row)
          Get the integer level for a given row This is typically used to color the rows accordingly
 int getRowCount()
           
 int getSize()
           
 java.lang.Object getValueAt(int rowIndex, int column)
           
protected  void pauseRefreshLoop()
          Method pauseRefreshLoop
Summary:
Pause the refresh loop.
 void setSize(int newsize)
          Set the model max number o
protected  void stopRefreshLoop()
          Method stopRefreshLoop
Summary:
Stop the refresh loop.
 
Methods inherited from class simtools.logging.ui.AbstractLoggingTableModel
getColumnCount, getColumnName, loadLevelNames
 
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
 

Constructor Detail

LoggingBufferTableModel

public LoggingBufferTableModel(int size,
                               MenuResourceBundle resources)

LoggingBufferTableModel

public LoggingBufferTableModel(LoggingEntryByteBuffer buffer,
                               MenuResourceBundle resources)
Method Detail

pauseRefreshLoop

protected void pauseRefreshLoop()
Method pauseRefreshLoop
Summary:
Pause the refresh loop.


stopRefreshLoop

protected void stopRefreshLoop()
Method stopRefreshLoop
Summary:
Stop the refresh loop.


getLevel

public int getLevel(int row)
Description copied from class: AbstractLoggingTableModel
Get the integer level for a given row This is typically used to color the rows accordingly

Specified by:
getLevel in class AbstractLoggingTableModel
Parameters:
row - the row number
Returns:

getSize

public int getSize()
Specified by:
getSize in class AbstractLoggingTableModel
Returns:
the model max number of rows

setSize

public void setSize(int newsize)
Description copied from class: AbstractLoggingTableModel
Set the model max number o

Specified by:
setSize in class AbstractLoggingTableModel

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int column)

clearLogs

public void clearLogs()
Description copied from class: AbstractLoggingTableModel
Method clearLogs
Summary:
Use this method to clear the logs.

Specified by:
clearLogs in class AbstractLoggingTableModel