use of com.xenoage.zong.musiclayout.spacer.system.fill.SystemFiller in project Zong by Xenoage.
the class ScoreLayouter method fillSystemsHorizontally.
/**
* Fills the systems horizontally according to the {@link SystemFiller}
* of the frame.
*/
void fillSystemsHorizontally(FramesSpacing frames, Target target) {
for (int iFrame : range(frames.size())) {
FrameSpacing frameArr = frames.get(iFrame);
SystemFiller hFill = target.getArea(iFrame).hFill;
// apply strategy
for (SystemSpacing oldSystemArr : frameArr.getSystems()) {
float usableWidth = frameArr.getUsableSizeMm().width - oldSystemArr.getMarginLeftMm() - oldSystemArr.getMarginRightMm();
hFill.compute(oldSystemArr, usableWidth);
}
}
}
Aggregations