Package com.openhtmltopdf.layout
Class VerticalAlignContext
java.lang.Object
com.openhtmltopdf.layout.VerticalAlignContext
public class VerticalAlignContext extends Object
This class performs the real work of vertically positioning inline boxes
within a line (i.e. implementing the vertical-align property). Because
of the requirements of vertical-align: top/bottom, a
VerticalAlignContext
is actually a tree of VerticalAlignContext objects which all
must be taken into consideration when aligning content.-
Constructor Summary
Constructors Constructor Description VerticalAlignContext() -
Method Summary
Modifier and Type Method Description voidalignChildren()VerticalAlignContextcreateChild(Box root)List<com.openhtmltopdf.layout.VerticalAlignContext.ChildContextData>getChildren()intgetInlineBottom()intgetInlineTop()intgetLineBoxHeight()intgetPaintingBottom()intgetPaintingTop()VerticalAlignContextgetParent()InlineBoxMeasurementsgetParentMeasurements()voidpopMeasurements()voidpushMeasurements(InlineBoxMeasurements measurements)voidsetInitialMeasurements(InlineBoxMeasurements measurements)voidsetParent(VerticalAlignContext parent)voidupdateInlineBottom(int inlineBottom)voidupdateInlineTop(int inlineTop)voidupdatePaintingBottom(int paintingBottom)voidupdatePaintingTop(int paintingTop)
-
Constructor Details
-
VerticalAlignContext
public VerticalAlignContext()
-
-
Method Details
-
getInlineBottom
public int getInlineBottom() -
getInlineTop
public int getInlineTop() -
updateInlineTop
public void updateInlineTop(int inlineTop) -
updatePaintingTop
public void updatePaintingTop(int paintingTop) -
updateInlineBottom
public void updateInlineBottom(int inlineBottom) -
updatePaintingBottom
public void updatePaintingBottom(int paintingBottom) -
getLineBoxHeight
public int getLineBoxHeight() -
pushMeasurements
-
getParentMeasurements
-
popMeasurements
public void popMeasurements() -
getPaintingBottom
public int getPaintingBottom() -
getPaintingTop
public int getPaintingTop() -
createChild
-
getChildren
-
getParent
-
setParent
-
alignChildren
public void alignChildren() -
setInitialMeasurements
-