org.apache.fop.layoutmgr

Class BalancingColumnBreakingAlgorithm


public class BalancingColumnBreakingAlgorithm
extends org.apache.fop.layoutmgr.PageBreakingAlgorithm

This is a the breaking algorithm that is responsible for balancing columns in multi-column layout.

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.PageBreakingAlgorithm

PageBreakingAlgorithm.BestPageRecords, PageBreakingAlgorithm.KnuthPageNode, PageBreakingAlgorithm.PageBreakingLayoutListener

Nested classes/interfaces inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm

BreakingAlgorithm.BestRecords, BreakingAlgorithm.KnuthNode

Field Summary

Fields inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm

ALL_BREAKS, INFINITE_RATIO, NO_FLAGGED_PENALTIES, ONLY_FORCED_BREAKS, activeLines, activeNodeCount, alignment, alignmentLast, bFirst, best, considerTooShort, endLine, incompatibleFitnessDemerit, lineWidth, log, maxFlaggedPenaltiesCount, par, repeatedFlaggedDemerit, startLine, totalShrink, totalStretch, totalWidth

Constructor Summary

BalancingColumnBreakingAlgorithm(LayoutManager topLevelLM, PageProvider pageProvider, PageBreakingAlgorithm.PageBreakingLayoutListener layoutListener, int alignment, int alignmentLast, MinOptMax footnoteSeparatorLength, boolean partOverflowRecovery, int columnCount)

Method Summary

protected double
computeDemerits(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int fitnessClass, double r)

Methods inherited from class org.apache.fop.layoutmgr.PageBreakingAlgorithm

computeAdjustmentRatio, computeDemerits, computeDifference, considerLegalBreak, createNode, createNode, filterActiveNodes, finish, getFObj, getFootnoteList, getLineWidth, getPageBreaks, handleBox, initialize, insertPageBreakAsFirst, restartFrom, updateData1, updateData2

Methods inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm

addNode, compareNodes, computeAdjustmentRatio, computeDemerits, computeDifference, considerLegalBreak, createNode, createNode, filterActiveNodes, findBreakingPoints, findBreakingPoints, finish, getAlignment, getAlignmentLast, getElement, getLineWidth, getLineWidth, getMaxRecoveryAttempts, getNode, handleBox, initialize, isPartOverflowRecoveryActivated, removeNode, restartFrom, setConstantLineWidth, toString, updateData1, updateData2

Constructor Details

BalancingColumnBreakingAlgorithm

public BalancingColumnBreakingAlgorithm(LayoutManager topLevelLM,
                                        PageProvider pageProvider,
                                        PageBreakingAlgorithm.PageBreakingLayoutListener layoutListener,
                                        int alignment,
                                        int alignmentLast,
                                        MinOptMax footnoteSeparatorLength,
                                        boolean partOverflowRecovery,
                                        int columnCount)

Method Details

computeDemerits

protected double computeDemerits(BreakingAlgorithm.KnuthNode activeNode,
                                 KnuthElement element,
                                 int fitnessClass,
                                 double r)
Overrides:
computeDemerits in interface org.apache.fop.layoutmgr.PageBreakingAlgorithm

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.