com.bigzip.plugin.support.table
Class DoublePrecisionColumn

java.lang.Object
  |
  +--com.bigzip.plugin.ColumnInfo
        |
        +--com.bigzip.plugin.support.table.DoublePrecisionColumn
Direct Known Subclasses:
PercentColumn

public class DoublePrecisionColumn
extends ColumnInfo

The DoublePrecisionColumn displays a column of double-precision floating-point numbers in the entry table. By default, the column is rendered with right justification. The column is sortable.


Fields inherited from class com.bigzip.plugin.ColumnInfo
COMMON_CLASS_PROPERTY, EDITABLE_PROPERTY, EDITOR_PROPERTY, HEADING_PROPERTY, MAXIMUM_WIDTH_PROPERTY, MINIMUM_WIDTH_PROPERTY, PREFERRED_WIDTH_PROPERTY, RENDERER_PROPERTY, RESIZABLE_PROPERTY, SORTABLE_PROPERTY, SORTER_PROPERTY
 
Constructor Summary
DoublePrecisionColumn()
          Creates a new DoublePrecisionColumn with no column heading.
DoublePrecisionColumn(java.lang.String heading)
          Creates a new DoublePrecisionColumn with the specified heading.
 
Method Summary
 int getJustification()
          Retreives the current justification setting for this column.
 int getMaximumFractionDigits()
          Retrieves the maximum number of digits to be displayed after the decimal point.
 int getMaximumIntegerDigits()
          Retrieves the maximum number of digits to be displayed before the decimal point.
 int getMinimumFractionDigits()
          Retrieves the minimum number of digits to be displayed after the decimal point.
 int getMinimumIntegerDigits()
          Retrieves the minimum number of digits to be displayed before the decimal point.
 java.text.NumberFormat getNumberFormater()
          Retreives the current NumberFormat object associated with this column.
 void setJustification(int justification)
          Sets the justification for the numbers in the column.
 void setMaximumFractionDigits(int max)
          Sets the maximum number of digits to be displayed after the decimal point.
 void setMaximumIntegerDigits(int max)
          Sets the maximum number of digits to be displayed before the decimal point.
 void setMinimumFractionDigits(int min)
          Sets the minimum number of digits to be displayed after the decimal point.
 void setMinimumIntegerDigits(int min)
          Sets the minimum number of digits to be displayed before the decimal point.
 void setNumberFormater(java.text.NumberFormat numberFormater)
          Associates a new NumberFormat object with this column.
 
Methods inherited from class com.bigzip.plugin.ColumnInfo
addPropertyChangeListener, firePropertyChange, getCommonClass, getEditor, getHeading, getMaximumWidth, getMinimumWidth, getPreferredWidth, getRenderer, getSorter, isEditable, isResizable, isSortable, removePropertyChangeListener, setCommonClass, setEditable, setEditor, setHeading, setMaximumWidth, setMinimumWidth, setPreferredWidth, setRenderer, setResizable, setSortable, setSorter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublePrecisionColumn

public DoublePrecisionColumn()
Creates a new DoublePrecisionColumn with no column heading.

DoublePrecisionColumn

public DoublePrecisionColumn(java.lang.String heading)
Creates a new DoublePrecisionColumn with the specified heading.
Parameters:
heading - The string to use as the heading for this column.
Method Detail

getJustification

public int getJustification()
Retreives the current justification setting for this column.
See Also:
javax.swing.JLabel#getJustification

getMaximumFractionDigits

public int getMaximumFractionDigits()
Retrieves the maximum number of digits to be displayed after the decimal point.

getMaximumIntegerDigits

public int getMaximumIntegerDigits()
Retrieves the maximum number of digits to be displayed before the decimal point.

getMinimumFractionDigits

public int getMinimumFractionDigits()
Retrieves the minimum number of digits to be displayed after the decimal point.

getMinimumIntegerDigits

public int getMinimumIntegerDigits()
Retrieves the minimum number of digits to be displayed before the decimal point.

getNumberFormater

public java.text.NumberFormat getNumberFormater()
Retreives the current NumberFormat object associated with this column.
Returns:
The NumberFormat object used to format the numbers in the column.

setJustification

public void setJustification(int justification)
Sets the justification for the numbers in the column.
See Also:
javax.swing.JLabel#setJustification

setMaximumFractionDigits

public void setMaximumFractionDigits(int max)
Sets the maximum number of digits to be displayed after the decimal point.

setMaximumIntegerDigits

public void setMaximumIntegerDigits(int max)
Sets the maximum number of digits to be displayed before the decimal point.

setMinimumFractionDigits

public void setMinimumFractionDigits(int min)
Sets the minimum number of digits to be displayed after the decimal point.

setMinimumIntegerDigits

public void setMinimumIntegerDigits(int min)
Sets the minimum number of digits to be displayed before the decimal point.

setNumberFormater

public void setNumberFormater(java.text.NumberFormat numberFormater)
Associates a new NumberFormat object with this column.
Parameters:
formater - The NumberFormat object to be used to format the numbers in this column.