public class GridSheet.Column
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
java.text.DecimalFormat |
nf
Column Decimal Format
|
| Constructor and Description |
|---|
Column() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares the indices of two Columns
|
java.lang.String |
format(double data)
Format the given data using the DecimalFormat for this column,
if one has been set.
|
GridSheet.ColorRule |
getColorRule()
Gets the Color Rule
|
void |
setColorRule(GridSheet.ColorRule cr)
Sets the Color Rule
|
void |
setFormatter(java.lang.String pattern)
Sets the DecimalFormat to be used for this column, if one is needed.
|
nxm.sys.lib.Table |
toTable(java.util.Vector<GridSheet.Row> vov)
Returns a NeXtMidas Table representation of the Column
|
java.util.Vector<java.lang.Object> |
toVector(java.util.Vector<GridSheet.Row> vov)
Returns a Vector representation of the Column
|
public nxm.sys.lib.Table toTable(java.util.Vector<GridSheet.Row> vov)
vov - Vector of Rows in which to read data from the same columnpublic java.util.Vector<java.lang.Object> toVector(java.util.Vector<GridSheet.Row> vov)
vov - Vector of Rows in which to read data from the same columnpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable<java.lang.Object>o - Object to compare index with (assumed to be Column)public GridSheet.ColorRule getColorRule()
public void setColorRule(GridSheet.ColorRule cr)
cr - new Color Rulepublic void setFormatter(java.lang.String pattern)
pattern - the java DecimalFormat pattern used to format this column.
(See java.text.DecimalFormat javadocs for pattern syntax.)public java.lang.String format(double data)
data - data to formatsetFormatter(String)