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 voidaddAnchors(int index, List<String> refs)RowImpl.BuilderaddAnchors(List<String> refs)RowImpl.BuilderaddExternalReference(Object externalReference)Add an external reference object that will flow though the framework to the PEF file.voidaddIdentifiers(int index, List<String> list)Add a collection of identifiers to the Row.RowImpl.BuilderaddIdentifiers(List<String> refs)Add a collection of identifiers to the Row.voidaddMarkers(int index, List<Marker> list)Add a collection of markers to the Row.RowImpl.BuilderaddMarkers(List<Marker> list)Add a collection of markers to the Row.RowImpl.BuilderadjustedForMargin(boolean value)RowImpl.Builderalignment(FormattingTypes.Alignment value)RowImpl.BuilderallowsBreakAfter(boolean value)RowImplbuild()intgetLeaderSpace()RowImpl.Builderinvisible(boolean b)voidleaderSpace(int value)RowImpl.BuilderleftMargin(MarginProperties value)RowImpl.BuilderrightMargin(MarginProperties value)RowImpl.BuilderrowSpacing(Float value)RowImpl.Buildertext(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()
-
-