StyledTextContent content = parent.getContent(); int lineCount = content.getLineCount(); int defaultLineHeight = parent.getLineHeight(); if (parent.isFixedLineHeight()) { return lineCount * defaultLineHeight; }
	public int getTotalHeight () {				//if fixedHeight return lineCount * lineHeight				int totalHeight = 0;		int avgCharWidth = parent.renderer.getAverageCharWidth();		int width = parent.getWrapWidth();		StyledTextContent content = parent.getContent();		int lineCount = content.getLineCount();		int defaultLineHeight = parent.getLineHeight();		for (int i = 0; i < lineCount; i++) {			int height = lineHeight[i];			if (height == -1) {				if (width > 0) {					int length = content.getLine(i).length();					height = (length * avgCharWidth / width) + 1;				} else {					height = defaultLineHeight;				}			}			totalHeight += height;		}		return totalHeight;	}