@Override
	public int calculatePreferredWidth(TreeRow row) {
		int width = TextDrawing.getPreferredSize(getFont(row), getText(row)).width;
		StdImage icon = getIcon(row);
		if (icon != null) {
			width += icon.getWidth() + ICON_GAP;
		}
		return HMARGIN + width + HMARGIN;
	}