public static TextGraphic drawMultiLineText(JPanel form, TextData text,
int startX, int startY, Font font, int horizAlign, int penColor,
int width, int height, int visibleColumns, int visibleLines,
boolean hasWordWrap, int lineSpacing) {
if (height != -1 && visibleLines != -1) {
UsageException errorVar = new UsageException("You cannot specify both Height and VisibleLines");
ErrorMgr.addError(errorVar);
throw errorVar;
}
if (width != -1 && visibleColumns != -1) {
UsageException errorVar = new UsageException("You cannot specify both Width and VisibleColumns");
ErrorMgr.addError(errorVar);
throw errorVar;
}
setForm(form);
TextGraphic tg = GraphicFactory.newTextGraphic(text);