public Object getValueAt(int row, int col) {
return getValueForColumn(getElement(row), col);
}
public Object getValueForColumn(Object obj, int col) {
ObjectHistogramElement el = (ObjectHistogramElement)obj;
switch (col) {
case 0:
return new Long(el.getSize());
case 1:
return new Long(el.getCount());
case 2:
return el.getDescription();
default:
throw new RuntimeException("Index (" + col + ") out of bounds");
}
}