org.apache.fop.layoutmgr.inline
Interface ScaledBaselineTable
- BasicScaledBaselineTable
public interface ScaledBaselineTable
The FOP specific incarnation of the XSL-FO scaled baseline table.
All baseline tables are scaled to the font size of the font they
apply to. This interface uses a coordinate system with its origin
where the dominant baseline intersects the start edge of the box.
All measurements are in mpt.
deriveScaledBaselineTable
public ScaledBaselineTable deriveScaledBaselineTable(int baselineIdentifier)
Return a new baseline table for the given baseline based
on the current baseline table.
baselineIdentifier
- the baseline identifer
- a new baseline with the new baseline
getBaseline
public int getBaseline(int baselineIdentifier)
Return the offset measured from the dominant
baseline for the given baseline identifier.
baselineIdentifier
- the baseline identifier
getDominantBaselineIdentifier
public int getDominantBaselineIdentifier()
Return the dominant baseline identifer for this alignment context.
- the dominant baseline identifier
getWritingMode
public int getWritingMode()
Return the writing mode for this aligment context.
setBeforeAndAfterBaselines
public void setBeforeAndAfterBaselines(int beforeBaseline,
int afterBaseline)
Sets the position of the before and after baselines.
This is usually only done for line areas. For other
areas the position of the before and after baselines
are fixed when the table is constructed.
beforeBaseline
- the offset of the before-edge baseline from the dominant baselineafterBaseline
- the offset of the after-edge baseline from the dominant baseline
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.