protected String getPresentationText(TreeRow row, Font font, int width, boolean forHeightOnly) {
		String text = getText(row);
		if (mWrappingMode == WrappingMode.WRAPPED) {
			return TextDrawing.wrapToPixelWidth(font, text, width);
		}
		if (mWrappingMode == WrappingMode.SINGLE_LINE) {
			int cut = text.indexOf('\n');
			if (cut != -1) {
				text = text.substring(0, cut);
			}
		}
		return forHeightOnly ? text : TextDrawing.truncateIfNecessary(font, text, width, mTruncationPolicy);
	}