Package org.xhtmlrenderer.layout
Class VerticalAlignContext
java.lang.Object
org.xhtmlrenderer.layout.VerticalAlignContext
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<VerticalAlignContext.ChildContextData> private intprivate booleanprivate intprivate booleanprivate final List<InlineBoxMeasurements> private intprivate booleanprivate intprivate booleanprivate final @Nullable VerticalAlignContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateChild(Box root) intintintintint@Nullable VerticalAlignContextprivate VerticalAlignContextgetRoot()private voidmerge(VerticalAlignContext context) private voidmoveTrackedValues(int ty) voidvoidpushMeasurements(InlineBoxMeasurements measurements) voidupdateInlineBottom(int inlineBottom) voidupdateInlineTop(int inlineTop) voidupdatePaintingBottom(int paintingBottom) voidupdatePaintingTop(int paintingTop)
-
Field Details
-
_measurements
-
_inlineTop
private int _inlineTop -
_inlineTopSet
private boolean _inlineTopSet -
_inlineBottom
private int _inlineBottom -
_inlineBottomSet
private boolean _inlineBottomSet -
_paintingTop
private int _paintingTop -
_paintingTopSet
private boolean _paintingTopSet -
_paintingBottom
private int _paintingBottom -
_paintingBottomSet
private boolean _paintingBottomSet -
_children
-
_parent
-
-
Constructor Details
-
VerticalAlignContext
-
VerticalAlignContext
-
-
Method Details
-
moveTrackedValues
private void moveTrackedValues(int ty) -
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
-
getRoot
-
merge
-
alignChildren
public void alignChildren()
-