org.apache.fop.area.inline

Class InlineArea.InlineAdjustingInfo

Enclosing Class:
InlineArea
Known Direct Subclasses:
AbstractTextArea.TextAdjustingInfo

protected class InlineArea.InlineAdjustingInfo
extends java.lang.Object

this class stores information about potential adjustments that can be used in order to re-compute adjustments when a page-number or a page-number-citation is resolved

Field Summary

protected int
adjustment
total adjustment (= ipd - width of fixed elements)
protected int
availableShrink
shrink of the inline area
protected int
availableStretch
stretch of the inline area

Constructor Summary

InlineAdjustingInfo(int stretch, int shrink, int adj)
Constructor

Method Summary

protected int
applyVariationFactor(double variationFactor)
Apply the variation factor

Field Details

adjustment

protected int adjustment
total adjustment (= ipd - width of fixed elements)

availableShrink

protected int availableShrink
shrink of the inline area

availableStretch

protected int availableStretch
stretch of the inline area

Constructor Details

InlineAdjustingInfo

protected InlineAdjustingInfo(int stretch,
                              int shrink,
                              int adj)
Constructor
Parameters:
stretch - the available space for stretching
shrink - the available space for shrinking
adj - space adjustment type

Method Details

applyVariationFactor

protected int applyVariationFactor(double variationFactor)
Apply the variation factor
Parameters:
variationFactor - the factor by which the adjustment is to be changed
Returns:
the IPD increase

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