org.apache.fop.layoutmgr

Interface BlockLevelLayoutManager

All Superinterfaces:
LayoutManager, PercentBaseContext
Known Implementing Classes:
BlockContainerLayoutManager, BlockLayoutManager, BlockStackingLayoutManager, FlowLayoutManager, FootnoteBodyLayoutManager, LineLayoutManager, ListBlockLayoutManager, ListItemContentLayoutManager, ListItemLayoutManager, StaticContentLayoutManager, TableAndCaptionLayoutManager, TableCaptionLayoutManager, TableCellLayoutManager, TableLayoutManager

public interface BlockLevelLayoutManager
extends LayoutManager

The interface for LayoutManagers which generate block areas

Field Summary

static int
LINE_HEIGHT_ADJUSTMENT
Adjustment class: adjustment for line height
static int
LINE_NUMBER_ADJUSTMENT
Adjustment class: adjustment for number of lines
static int
NO_ADJUSTMENT
Adjustment class: no adjustment
static int
SPACE_AFTER_ADJUSTMENT
Adjustment class: adjustment for space-after
static int
SPACE_BEFORE_ADJUSTMENT
Adjustment class: adjustment for space-before

Method Summary

void
discardSpace(KnuthGlue spaceGlue)
boolean
mustKeepTogether()
boolean
mustKeepWithNext()
boolean
mustKeepWithPrevious()
int
negotiateBPDAdjustment(int adj, KnuthElement lastElement)

Methods inherited from interface org.apache.fop.layoutmgr.LayoutManager

addAreas, addChildArea, addChildLM, addChildLMs, createNextChildLMs, getChangedKnuthElements, getChildLMs, getContentAreaBPD, getContentAreaIPD, getFObj, getGeneratesBlockArea, getGeneratesLineArea, getGeneratesReferenceArea, getNextKnuthElements, getPSLM, getParent, getParentArea, initialize, isFinished, notifyPos, setFinished, setParent

Methods inherited from interface org.apache.fop.datatypes.PercentBaseContext

getBaseLength

Field Details

LINE_HEIGHT_ADJUSTMENT

public static final int LINE_HEIGHT_ADJUSTMENT
Adjustment class: adjustment for line height
Field Value:
3

LINE_NUMBER_ADJUSTMENT

public static final int LINE_NUMBER_ADJUSTMENT
Adjustment class: adjustment for number of lines
Field Value:
2

NO_ADJUSTMENT

public static final int NO_ADJUSTMENT
Adjustment class: no adjustment
Field Value:
-1

SPACE_AFTER_ADJUSTMENT

public static final int SPACE_AFTER_ADJUSTMENT
Adjustment class: adjustment for space-after
Field Value:
1

SPACE_BEFORE_ADJUSTMENT

public static final int SPACE_BEFORE_ADJUSTMENT
Adjustment class: adjustment for space-before
Field Value:
0

Method Details

discardSpace

public void discardSpace(KnuthGlue spaceGlue)

mustKeepTogether

public boolean mustKeepTogether()
Returns:
true if this element must be kept together

mustKeepWithNext

public boolean mustKeepWithNext()
Returns:
true if this element must be kept with the next element.

mustKeepWithPrevious

public boolean mustKeepWithPrevious()
Returns:
true if this element must be kept with the previous element.

negotiateBPDAdjustment

public int negotiateBPDAdjustment(int adj,
                                  KnuthElement lastElement)

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