Examples of KnuthNode


Examples of org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode

     * @return the page on which the next content should appear after a hard break
     */
    private int getNextBlockListChangedIPD(LayoutContext childLC, PageBreakingAlgorithm alg,
                    BlockSequence effectiveList) {
        int nextSequenceStartsOn;
        KnuthNode optimalBreak = alg.getBestNodeBeforeIPDChange();
        int positionIndex = optimalBreak.position;
        log.trace("IPD changes at index " + positionIndex);
        KnuthElement elementAtBreak = alg.getElement(positionIndex);
        Position positionAtBreak = elementAtBreak.getPosition();
        if (!(positionAtBreak instanceof SpaceResolver.SpaceHandlingBreakPosition)) {
View Full Code Here

Examples of org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode

                alg.setConstantLineWidth(flowBPD);
                int optimalPageCount = alg.findBreakingPoints(effectiveList, 1, true,
                        BreakingAlgorithm.ALL_BREAKS);
                if (alg.getIPDdifference() != 0) {
                    KnuthNode optimalBreak = alg.getBestNodeBeforeIPDChange();
                    int positionIndex = optimalBreak.position;
                    KnuthElement elementAtBreak = alg.getElement(positionIndex);
                    Position positionAtBreak = elementAtBreak.getPosition();
                    if (!(positionAtBreak instanceof SpaceResolver.SpaceHandlingBreakPosition)) {
                        throw new UnsupportedOperationException(
View Full Code Here

Examples of org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode

            return super.findBreakingPoints(par, /*lineWidth,*/
                    threshold, force, allowedBreaks);
        }

        protected int filterActiveNodes() {
            KnuthNode bestActiveNode = null;

            if (pageAlignment == EN_JUSTIFY) {
                // leave all active nodes and find the optimum line number
                //log.debug("LBA.filterActiveNodes> " + activeNodeCount + " layouts");
                for (int i = startLine; i < endLine; i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.