Search in sources :

Example 1 with SystemFiller

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);
        }
    }
}
Also used : SystemFiller(com.xenoage.zong.musiclayout.spacer.system.fill.SystemFiller) FrameSpacing(com.xenoage.zong.musiclayout.spacing.FrameSpacing) SystemSpacing(com.xenoage.zong.musiclayout.spacing.SystemSpacing)

Aggregations

SystemFiller (com.xenoage.zong.musiclayout.spacer.system.fill.SystemFiller)1 FrameSpacing (com.xenoage.zong.musiclayout.spacing.FrameSpacing)1 SystemSpacing (com.xenoage.zong.musiclayout.spacing.SystemSpacing)1