StringBuffer retVal = new StringBuffer(128);
if (data == null) {
return "";
}
if (data instanceof Number) {
double cellValue = ((Number) data).doubleValue();
if (cellValue >= 0) {
processNumber(retVal, _positiveColor, cellValue);
} else {
processNumber(retVal, _negativeColor, cellValue);
}
return retVal.toString();
}
return data.toString();