ParagraphElement
parent, for example: DocGeneratorAPI.addSentence(ParagraphElementParent, String)DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // create an article XMLArticle article = api.createArticle("the first article"); // add a sentence api.addSentence(article, "the regular sentence");
DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // create an article XMLArticle article = api.createArticle("the first article"); // add the text on the first line api.addSentence(article, "This is a "); SentenceStyle style = SentenceStyle.createTypeStyle(FontType.BOLD); api.addSentence(article, "bold", style); api.addSentence(article, " text in "); style = SentenceStyle.createColorStyle("red"); XMLTextStyle textStyle = api.addTextStyle(article, style); api.addSentence(textStyle, "red"); api.addBreak(article); // add the text on the second line api.addSentence(article, "and some text on a new line.");
\n
and \t
).DocGeneratorAPI api = new DocGeneratorAPI(); api.createModel(); api.setOutputDirectory(<the wiki directory>); // create an article XMLArticle article = api.createArticle("the first article"); // add some text on two lines api.addMultilineSentence(article, "This is a text on the first line\nand on the second line"); // add some tabulated text api.addMultilineSentence(article, "\tThis is a text after a tab");
ParagraphElement
parent, for example: DocGeneratorAPI.addSentence(ParagraphElementParent, String)docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.