|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.inline.AlignmentContext
public class AlignmentContext
The alignment context is carried within a LayoutContext and as part of the Knuth Inline elements to facilitate proper line building. All measurements are in mpt.
Field Summary |
---|
Constructor Summary | |
---|---|
AlignmentContext(Font font,
int lineHeight,
int writingMode)
Creates a new instance of AlignmentContext based simply on the font and the writing mode. |
|
AlignmentContext(Font font,
int lineHeight,
Length alignmentAdjust,
int alignmentBaseline,
Length baselineShift,
int dominantBaseline,
AlignmentContext parentAlignmentContext)
Creates a new instance of AlignmentContext |
|
AlignmentContext(int height,
Length alignmentAdjust,
int alignmentBaseline,
Length baselineShift,
int dominantBaseline,
AlignmentContext parentAlignmentContext)
Creates a new instance of AlignmentContext for graphics areas. |
Method Summary | |
---|---|
int |
getActualBaselineOffset(int baselineIdentifier)
Return the offset between the dominant baseline and the given actual baseline |
int |
getAlignmentBaselineIdentifier()
Returns the current alignment baseline identifier |
int |
getAlignmentPoint()
Returns the alignment point for this context. |
int |
getAltitude()
The altitude of the context that is the height above the alignment point. |
int |
getBaselineOffset()
Return the offset between the current dominant baseline and the parent dominant baseline. |
int |
getBaselineShiftValue()
Returns the current value of baseline shift in effect. |
int |
getDepth()
The depth of the context that is the height below alignment point. |
int |
getDominantBaselineIdentifier()
Return the dominant baseline identifier. |
int |
getHeight()
Return the total height of the context. |
int |
getLineHeight()
Return the line height of the context. |
int |
getOffset()
Returns the offset from the before-edge of the parent to this context. |
AlignmentContext |
getParentAlignmentContext()
Return the parent alignment context. |
ScaledBaselineTable |
getScaledBaselineTable()
Return the scaled baseline table for this context. |
int |
getTotalAlignmentBaselineOffset()
Return the offset between the alignment baseline and the outermost parent dominant baseline. |
int |
getTotalAlignmentBaselineOffset(int alignmentBaselineId)
Return the offset between the given alignment baseline and the outermost parent dominant baseline. |
int |
getTotalBaselineOffset()
Return the offset between the current dominant baseline and the outermost parent dominant baseline. |
int |
getWritingMode()
Return the writing mode. |
int |
getXHeight()
The x height of the context. |
void |
resizeLine(int newLineHeight,
int newAlignmentPoint)
Resizes the line as specified. |
java.lang.String |
toString()
|
boolean |
usesInitialBaselineTable()
Returns an indication if we still use the initial baseline table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlignmentContext(int height, Length alignmentAdjust, int alignmentBaseline, Length baselineShift, int dominantBaseline, AlignmentContext parentAlignmentContext)
height
- the total height of the areaalignmentAdjust
- the alignment-adjust propertyalignmentBaseline
- the alignment-baseline propertybaselineShift
- the baseline-shift propertydominantBaseline
- the dominant-baseline propertyparentAlignmentContext
- the parent alignment contextpublic AlignmentContext(Font font, int lineHeight, Length alignmentAdjust, int alignmentBaseline, Length baselineShift, int dominantBaseline, AlignmentContext parentAlignmentContext)
font
- the fontlineHeight
- the computed value of the lineHeight propertyalignmentAdjust
- the alignment-adjust propertyalignmentBaseline
- the alignment-baseline propertybaselineShift
- the baseline-shift propertydominantBaseline
- the dominant-baseline propertyparentAlignmentContext
- the parent alignment contextpublic AlignmentContext(Font font, int lineHeight, int writingMode)
font
- the fontlineHeight
- the computed value of the lineHeight propertywritingMode
- the current writing modeMethod Detail |
---|
public int getAlignmentPoint()
public int getBaselineShiftValue()
public int getAlignmentBaselineIdentifier()
public ScaledBaselineTable getScaledBaselineTable()
public int getDominantBaselineIdentifier()
public int getWritingMode()
public AlignmentContext getParentAlignmentContext()
public int getBaselineOffset()
public int getTotalBaselineOffset()
public int getTotalAlignmentBaselineOffset()
public int getTotalAlignmentBaselineOffset(int alignmentBaselineId)
alignmentBaselineId
- the alignment baseline
public int getActualBaselineOffset(int baselineIdentifier)
baselineIdentifier
- the baseline
public int getHeight()
public int getLineHeight()
public int getAltitude()
public int getDepth()
public int getXHeight()
public void resizeLine(int newLineHeight, int newAlignmentPoint)
newLineHeight
- the new height of the linenewAlignmentPoint
- the new alignment pointpublic int getOffset()
public boolean usesInitialBaselineTable()
public java.lang.String toString()
toString
in class java.lang.Object
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |