{
// NumberFormat format = NumberFormat.getInstance();
DecimalFormat format = new DecimalFormat("#0.0000");
IVennDataModel model = venn.getDataModel();
if( model == null || model.getNumGroups() == 0 )
return null;
if( rowIndex < 0 || rowIndex>= model.getNumGroups() )
return null;
AbstractGOCategoryProperties prop = (AbstractGOCategoryProperties)model.getGroupProperties(rowIndex);
switch( columnIndex )
{
case 0:
return new Integer(1+rowIndex);
case 1: // activated
return new Boolean( venn.getActivated(rowIndex) );
case 2: // ID
if( prop != null )
return new Long(prop.getID());
else
return null;
case 3: // category name
return model.getGroupName(rowIndex);
case 4: // number of elements (genes) = nChanged
int n = model.getGroupElements(rowIndex).cardinality();
if( prop != null )
Assert.assertEquals(n,prop.getNChange());
if (params.logNumElements) {
n = AbstractGOCategoryProperties.log(n);
}