if (isLastChild && depth != 0) { depthSpacingImage = getDepthSpacingImage(depth - 1); } else { depthSpacingImage = getDepthSpacingImage(depth); }
	private int setRowAttributes(Table table, PageTreeNode page, int row, int depth, boolean isLastChild) {		table.setCellpadding(1, row, _padding);		if (table.getColumns() == 2)			table.setVerticalAlignment(2, row, Table.VERTICAL_ALIGN_BOTTOM);				String alignment = getDepthAlignment(depth);		if (alignment == null) {			alignment = _textAlignment;		}				if (alignment.equals(Table.HORIZONTAL_ALIGN_LEFT)) {			table.setCellpaddingLeft(1, row, getIndent(depth));		}		else if (alignment.equals(Table.HORIZONTAL_ALIGN_RIGHT)) {			table.setCellpaddingRight(1, row, getIndent(depth));		}		String color = getDepthColor(page, depth);		if (color != null)			table.setRowColor(row, color);				String height = getDepthHeight(depth);		if (height != null) {			table.setHeight(row, height);		}				int topPadding = getDepthPaddingTop(depth);		if (topPadding != -1) {			table.setVerticalAlignment(1, row, Table.VERTICAL_ALIGN_TOP);			table.setCellpaddingTop(1, row, topPadding);		}		table.getCellAt(1, row).setID("row" + row);		table.setAlignment(1, row, alignment);		table.setNoWrap(1, row++);		boolean addBreak = false;		if (_spaceBetween > 0) {			String spacingColor = null;			if (isLastChild && depth != 0) {				spacingColor = getDepthSpacingColor(depth - 1);			}			else {				spacingColor = getDepthSpacingColor(depth);			}			if (spacingColor != null) {				table.setRowColor(row, spacingColor);			}			table.setHeight(row, _spaceBetween);						addBreak = true;		}				Image depthSpacingImage = getDepthSpacingImage(depth);		if (depthSpacingImage != null) {			table.mergeCells(1, row, table.getColumns(), row);			table.add(depthSpacingImage, 1, row);			addBreak = true;		}				if (addBreak) {			row++;		}		return row;	}