public interface BlockContentBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
addChars(java.lang.CharSequence chars,
TextProperties props)
Add chars to the current block
|
void |
endStyle()
Ends a previously opened style section
|
void |
insertAnchor(java.lang.String ref)
Insert an anchor at the current position in the flow
|
void |
insertEvaluate(DynamicContent exp,
TextProperties t)
Inserts an expression to evaluate.
|
void |
insertLeader(Leader leader)
Insert a leader at the current position in the flow
|
void |
insertMarker(Marker marker)
Insert a marker at the current position in the flow
|
void |
insertReference(java.lang.String identifier,
NumeralStyle numeralStyle)
Adds the page number of a reference.
|
void |
newLine()
Explicitly break the current line, even if the line has space
left for more characters.
|
void |
startStyle(java.lang.String style)
Starts a style section
|
void insertMarker(Marker marker)
marker - the marker to insertjava.lang.IllegalStateException - if the current state does not allow this call to be madevoid insertAnchor(java.lang.String ref)
ref - anchor namejava.lang.IllegalStateException - if the current state does not allow this call to be madevoid insertLeader(Leader leader)
leader - the leader to insertjava.lang.IllegalStateException - if the current state does not allow this call to be madevoid addChars(java.lang.CharSequence chars,
TextProperties props)
chars - the characters to add to the flowprops - the SpanProperties for the charactersjava.lang.IllegalStateException - if the current state does not allow this call to be madevoid startStyle(java.lang.String style)
style - the name of the stylejava.lang.IllegalStateException - if the current state does not allow this call to be madevoid endStyle()
java.lang.IllegalStateException - if the current state does not allow this call to be madevoid newLine()
java.lang.IllegalStateException - if the current state does not allow this call to be madevoid insertReference(java.lang.String identifier,
NumeralStyle numeralStyle)
identifier - the element of interestnumeralStyle - the numeral stylejava.lang.IllegalStateException - if the current state does not allow this call to be madevoid insertEvaluate(DynamicContent exp, TextProperties t)
exp - the expressiont - the text properties