Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Renamed a method for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Håkansson committed Jan 13, 2014
1 parent b292ea8 commit 2ed4da8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public PageStruct paginate(CrossReferences refs) throws PaginatorException {
pageStruct.newRow(new RowImpl("", g.getRowDataProperties().getLeftMarginParent(), g.getRowDataProperties().getRightMarginParent()));
}
if (g.getLeadingDecoration()!=null) {
pageStruct.newRow(newRow(g.getRowDataProperties(), g.getLeadingDecoration()));
pageStruct.newRow(makeDecorationRow(g.getRowDataProperties(), g.getLeadingDecoration()));
}
pageStruct.insertMarkers(rdm.getGroupMarkers());
boolean first = true;
Expand All @@ -144,7 +144,7 @@ public PageStruct paginate(CrossReferences refs) throws PaginatorException {
}
pageStruct.currentSequence().setKeepWithPreviousSheets(g.getKeepWithPreviousSheets());
if (g.getTrailingDecoration()!=null) {
pageStruct.newRow(newRow(g.getRowDataProperties(), g.getTrailingDecoration()));
pageStruct.newRow(makeDecorationRow(g.getRowDataProperties(), g.getTrailingDecoration()));
}
if (g.getSpaceAfter() > pageStruct.getFlowHeight() - pageStruct.spaceUsedInRows(1)) {
pageStruct.currentSequence().newPageOnRow();
Expand All @@ -159,7 +159,7 @@ public PageStruct paginate(CrossReferences refs) throws PaginatorException {
return pageStruct;
}

private RowImpl newRow(RowDataProperties rdp, SingleLineDecoration d) {
private RowImpl makeDecorationRow(RowDataProperties rdp, SingleLineDecoration d) {
int w = rdp.getMaster().getFlowWidth() - rdp.getRightMarginParent().getContent().length() - rdp.getLeftMarginParent().getContent().length();
int aw = w-d.getLeftCorner().length()-d.getRightCorner().length();
RowImpl row = new RowImpl(d.getLeftCorner() + StringTools.fill(d.getLinePattern(), aw) + d.getRightCorner());
Expand Down

0 comments on commit 2ed4da8

Please sign in to comment.