org.apache.fop.area
Class LineArea
- Serializable
The line area.
This is a line area that contains inline areas.
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 |
LineArea() - default constructor:
nothing to do
|
LineArea(int alignment, int diff, int stretch, int shrink) - constructor with extra parameters:
a new LineAdjustingInfo object is created
|
void | addChildArea(Area childArea) - Add a child area to this line area.
|
void | addInlineArea(InlineArea area) - Add an inline child area to this line area.
|
void | finalise() - apply the variation factor to all descendant areas
and destroy the AdjustingInfo object if there are
no UnresolvedAreas left
|
List | getInlineAreas() - Get the inline child areas of this line area.
|
int | getStartIndent() - Get the start indent of this line area.
|
void | handleIPDVariation(int ipdVariation) - receive notification about the ipd variation of a descendant area
and perform the needed adjustment, according to the alignment;
in particular:
- left-aligned text needs no adjustement;
- right-aligned text and centered text are handled locally,
adjusting the indent of this LineArea;
- justified text requires a more complex adjustment, as the
variation factor computed on the basis of the total
stretch and shrink of the line must be applied in every
descendant leaf areas (text areas and leader areas).
|
void | updateExtentsFromChildren() - Updates the extents of the line area from its children.
|
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 |
LineArea
public LineArea()
default constructor:
nothing to do
LineArea
public LineArea(int alignment,
int diff,
int stretch,
int shrink)
constructor with extra parameters:
a new LineAdjustingInfo object is created
alignment
- alignment of this linediff
- difference between content width and line widthstretch
- the available stretch for any adjustmentsshrink
- the available shrink for any adjustments
addChildArea
public void addChildArea(Area childArea)
Add a child area to this line area.
- addChildArea in interface Area
childArea
- the inline child area to add
addInlineArea
public void addInlineArea(InlineArea area)
Add an inline child area to this line area.
area
- the inline child area to add
finalise
public void finalise()
apply the variation factor to all descendant areas
and destroy the AdjustingInfo object if there are
no UnresolvedAreas left
getInlineAreas
public List getInlineAreas()
Get the inline child areas of this line area.
getStartIndent
public int getStartIndent()
Get the start indent of this line area.
The start indent is used for offsetting the start of
the inline areas for alignment or other indents.
handleIPDVariation
public void handleIPDVariation(int ipdVariation)
receive notification about the ipd variation of a descendant area
and perform the needed adjustment, according to the alignment;
in particular:
- left-aligned text needs no adjustement;
- right-aligned text and centered text are handled locally,
adjusting the indent of this LineArea;
- justified text requires a more complex adjustment, as the
variation factor computed on the basis of the total
stretch and shrink of the line must be applied in every
descendant leaf areas (text areas and leader areas).
ipdVariation
- the difference between old and new ipd
updateExtentsFromChildren
public void updateExtentsFromChildren()
Updates the extents of the line area from its children.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.