* @param width the width in pixels
* @return the new column width
*/
public int setColumnWidth(int column, int width) {
// Constrain the size of the column
ColumnWidthInfo info = getColumnWidthInfo(column);
if (info.hasMaximumWidth()) {
width = Math.min(width, info.getMaximumWidth());
}
if (info.hasMinimumWidth()) {
width = Math.max(width, info.getMinimumWidth());
}
// Try to constrain the size of the grid
if (resizePolicy.isSacrificial()) {
// Get the sacrifice columns