com.jstatcom.table
Interface NumberDisplayTable

All Known Implementing Classes:
CoeffTable, JSCNArrayTable, TSTable

public interface NumberDisplayTable

Interface for components that display numbers and that can be configured how the value should be printed.

Author:
Markus Kraetzig

Method Summary
 javax.swing.table.TableCellRenderer getCellRenderer()
          Gets the renderer used for displaying numbers in the table.
 int getPrecision()
          Gets the number of decimal digits for the number display.
 void setCellRenderer(javax.swing.table.TableCellRenderer renderer)
          Sets the renderer used for displaying numbers in the table.
 void setPrecision(int newPrec)
          Sets the number of decimal digits for the number display.
 

Method Detail

getCellRenderer

javax.swing.table.TableCellRenderer getCellRenderer()
Gets the renderer used for displaying numbers in the table.

Returns:
the renderer for the table cells

getPrecision

int getPrecision()
Gets the number of decimal digits for the number display.

Returns:
precision for number values

setCellRenderer

void setCellRenderer(javax.swing.table.TableCellRenderer renderer)
Sets the renderer used for displaying numbers in the table.

Parameters:
renderer - the renderer for the table cells

setPrecision

void setPrecision(int newPrec)
Sets the number of decimal digits for the number display.

Parameters:
newPrec - precision for number values