Class RowImpl.Builder
- java.lang.Object
-
- org.daisy.dotify.formatter.impl.row.RowImpl.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnchors(int index, List<String> refs)
RowImpl.Builder
addAnchors(List<String> refs)
RowImpl.Builder
addExternalReference(Object externalReference)
Add an external reference object that will flow though the framework to the PEF file.void
addIdentifiers(int index, List<String> list)
Add a collection of identifiers to the Row.RowImpl.Builder
addIdentifiers(List<String> refs)
Add a collection of identifiers to the Row.void
addMarkers(int index, List<Marker> list)
Add a collection of markers to the Row.RowImpl.Builder
addMarkers(List<Marker> list)
Add a collection of markers to the Row.RowImpl.Builder
adjustedForMargin(boolean value)
RowImpl.Builder
alignment(FormattingTypes.Alignment value)
RowImpl.Builder
allowsBreakAfter(boolean value)
RowImpl
build()
int
getLeaderSpace()
RowImpl.Builder
invisible(boolean b)
void
leaderSpace(int value)
RowImpl.Builder
leftMargin(MarginProperties value)
RowImpl.Builder
rightMargin(MarginProperties value)
RowImpl.Builder
rowSpacing(Float value)
RowImpl.Builder
text(String value)
-
-
-
Method Detail
-
text
public RowImpl.Builder text(String value)
-
leftMargin
public RowImpl.Builder leftMargin(MarginProperties value)
-
rightMargin
public RowImpl.Builder rightMargin(MarginProperties value)
-
alignment
public RowImpl.Builder alignment(FormattingTypes.Alignment value)
-
rowSpacing
public RowImpl.Builder rowSpacing(Float value)
-
adjustedForMargin
public RowImpl.Builder adjustedForMargin(boolean value)
-
allowsBreakAfter
public RowImpl.Builder allowsBreakAfter(boolean value)
-
addAnchors
public RowImpl.Builder addAnchors(List<String> refs)
-
leaderSpace
public void leaderSpace(int value)
-
getLeaderSpace
public int getLeaderSpace()
-
addMarkers
public RowImpl.Builder addMarkers(List<Marker> list)
Add a collection of markers to the Row.- Parameters:
list
- the list of markers- Returns:
- returns this builder
-
addMarkers
public void addMarkers(int index, List<Marker> list)
Add a collection of markers to the Row.- Parameters:
index
- the position in the marker list to insert the markerslist
- the list of markers- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index > getMarkers().size()
)
-
addIdentifiers
public RowImpl.Builder addIdentifiers(List<String> refs)
Add a collection of identifiers to the Row.- Parameters:
refs
- a list of identifiers- Returns:
- returns this builder
-
addExternalReference
public RowImpl.Builder addExternalReference(Object externalReference)
Add an external reference object that will flow though the framework to the PEF file.- Parameters:
externalReference
- External reference object- Returns:
- returns this builder
-
addIdentifiers
public void addIdentifiers(int index, List<String> list)
Add a collection of identifiers to the Row.- Parameters:
index
- the position in the identifier list to insert the identifierslist
- the list of identifiers- Throws:
IndexOutOfBoundsException
- if the index is out of range (index < 0 || index > getIdentifiers().size()
)
-
invisible
public RowImpl.Builder invisible(boolean b)
-
build
public RowImpl build()
-
-