org.apache.fop.area.inline
Class AbstractTextArea
- Serializable
public abstract class AbstractTextArea
Abstract base class for both TextArea and Character.
protected class | AbstractTextArea.TextAdjustingInfo - this class stores information about spaces and potential adjustments
that can be used in order to re-compute adjustments when a
page-number or a page-number-citation is resolved
|
BT , CLASS_ABSOLUTE , CLASS_BEFORE_FLOAT , CLASS_FIXED , CLASS_FOOTNOTE , CLASS_MAX , CLASS_NORMAL , CLASS_SIDE_FLOAT , LR , ORIENT_0 , ORIENT_180 , ORIENT_270 , ORIENT_90 , RL , TB , bpd , ipd , log , props |
addChildArea , applyVariationFactor , getAdjustingInfo , getOffset , getParentArea , handleIPDVariation , hasLineThrough , hasOverline , hasUnderline , increaseIPD , isBlinking , notifyIPDVariation , setAdjustingInfo , setAdjustment , setOffset , setParentArea |
addChildArea , addTrait , addTrait , getAllocBPD , getAllocIPD , getAreaClass , getBPD , getBooleanTrait , getBorderAndPaddingWidthAfter , getBorderAndPaddingWidthBefore , getBorderAndPaddingWidthEnd , getBorderAndPaddingWidthStart , getIPD , getSpaceAfter , getSpaceBefore , getSpaceEnd , getSpaceStart , getTrait , getTraitAsInteger , getTraits , hasTrait , hasTraits , setAreaClass , setBPD , setIPD , toString |
AbstractTextArea
public AbstractTextArea()
Default constructor
AbstractTextArea
public AbstractTextArea(int stretch,
int shrink,
int adj)
Constructor with extra parameters:
create a TextAdjustingInfo object
stretch
- the available stretch of the textshrink
- the available shrink of the textadj
- the current adjustment of the area
applyVariationFactor
public boolean applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
- applyVariationFactor in interface InlineParent
variationFactor
- the variation factor that must be applied to adjustmentslineStretch
- the total stretch of the linelineShrink
- the total shrink of the line
- true if there is an UnresolvedArea descendant
getBaselineOffset
public int getBaselineOffset()
Get baseline offset, i.e. the distance from the before edge
of this area to the nominal baseline.
getTextLetterSpaceAdjust
public int getTextLetterSpaceAdjust()
Get text letter space adjust.
- the text letter space adjustment
getTextWordSpaceAdjust
public int getTextWordSpaceAdjust()
Get text word space adjust.
- the text word space adjustment
setBaselineOffset
public void setBaselineOffset(int baselineOffset)
Set the baseline offset.
baselineOffset
- the baseline offset
setSpaceDifference
public void setSpaceDifference(int spaceDiff)
Set the difference between optimal width of a space and
default width of a space according to the font; this part
of the space adjustment is fixed and must not be
multiplied by the variation factor.
spaceDiff
- the space difference
setTextLetterSpaceAdjust
public void setTextLetterSpaceAdjust(int textLetterSpaceAdjust)
Set text letter space adjust.
textLetterSpaceAdjust
- the text letter space adjustment
setTextWordSpaceAdjust
public void setTextWordSpaceAdjust(int textWordSpaceAdjust)
Set text word space adjust.
textWordSpaceAdjust
- the text word space adjustment
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.