public class ParagraphBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
Paragraph |
build() |
ParagraphBuilder |
element(ParagraphElement element) |
ParagraphBuilder |
link(String text,
File file)
Create a link in the current paragraph.
|
ParagraphBuilder |
link(String text,
String ref)
Create a link in the current paragraph.
|
ParagraphBuilder |
link(String text,
Table table)
Create a link in the current paragraph.
|
ParagraphBuilder |
link(String text,
URI uri)
Create a link in the current paragraph.
|
ParagraphBuilder |
link(String text,
URL url)
Create a link in the current paragraph.
|
ParagraphBuilder |
span(String text)
Create a span in the current paragraph.
|
ParagraphBuilder |
style(TextStyle ts)
Set the paragraph style
|
ParagraphBuilder |
styledLink(String text,
TextStyle ts,
File file)
Create a styled link in the current paragraph.
|
ParagraphBuilder |
styledLink(String text,
TextStyle ts,
String ref)
Create a styled link in the current paragraph.
|
ParagraphBuilder |
styledLink(String text,
TextStyle ts,
Table table)
Create a styled link in the current paragraph.
|
ParagraphBuilder |
styledLink(String text,
TextStyle ts,
URI uri)
Create a styled link in the current paragraph.
|
ParagraphBuilder |
styledLink(String text,
TextStyle ts,
URL url)
Create a styled link in the current paragraph.
|
ParagraphBuilder |
styledSpan(String text,
TextStyle ts)
Create a styled span with a text content
|
public Paragraph build()
public ParagraphBuilder span(String text)
text - the textpublic ParagraphBuilder link(String text, String ref)
text - the textref - the destinationpublic ParagraphBuilder styledLink(String text, TextStyle ts, String ref)
text - the textts - the styleref - the destinationpublic ParagraphBuilder link(String text, Table table)
text - the texttable - the destinationpublic ParagraphBuilder styledLink(String text, TextStyle ts, Table table)
text - the textts - the styletable - the destinationpublic ParagraphBuilder link(String text, File file)
text - the textfile - the destinationpublic ParagraphBuilder styledLink(String text, TextStyle ts, File file)
text - the textts - the stylefile - the destinationpublic ParagraphBuilder link(String text, URL url)
text - the texturl - the destinationpublic ParagraphBuilder styledLink(String text, TextStyle ts, URL url)
text - the textts - the styleurl - the destinationpublic ParagraphBuilder link(String text, URI uri)
text - the texturi - the destinationpublic ParagraphBuilder styledLink(String text, TextStyle ts, URI uri)
text - the textts - the styleuri - the destinationpublic ParagraphBuilder style(TextStyle ts)
ts - the stylepublic ParagraphBuilder styledSpan(String text, TextStyle ts)
text - the textts - the stylepublic ParagraphBuilder element(ParagraphElement element)
element - a element to addCopyright © 2016–2021. All rights reserved.