| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static enum | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static InlineLayoutBox | addFirstLetterBox(LayoutContext c, LineBox current, InlineLayoutBox currentIB, LineBreakContext lbContext, int maxAvailableWidth, int remainingWidth, byte textDirection)
|
| private static InlineLayoutBox | Returns: the deepest box (so that the rest of the line's content can be added to it) or null if openParents is empty.We have to convert this HTML (angle brackets replaced with square brackets): [one][two]Two lines[/two][/one] |
| private static void | alignInlineContent(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext)
|
| private static void | |
| private static InlineBoxMeasurements | |
| public static List | |
| public static StrutMetrics | |
| private static void | endInlineBox(LayoutContext c, InlineBoxing.
|
| private static void | |
| private static InlineBoxMeasurements | |
| private static boolean | hasTrimmableLeadingSpace(LineBox line, CalculatedStyle style, LineBreakContext lbContext, boolean zeroWidthInlineBlock)
|
| private static boolean | |
| public static void | |
| private static void | layoutInlineBlockContent(LayoutContext c, BlockBox containingBlock, BlockBox inlineBlock, int initialY)
|
| private static InlineText | layoutText(LayoutContext c, CalculatedStyle style, int remainingWidth, LineBreakContext lbContext, boolean needFirstLetter, byte textDirection, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput)
|
| private static void | |
| private static void | |
| private static LineBox | |
| private static LineBox | |
| public static int | |
| private static int | |
| private static int | |
| public static int | Returns: width of line.should be the line box. current, int should be the right edge of the line start, int width)Attempts to layout inline boxes from right to left. |
| private static void | positionInlineBlockVertically(LayoutContext c, VerticalAlignContext vaContext, BlockBox inlineBlock)
|
| private static void | positionInlineChildrenVertically(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext)
|
| private static void | |
| private static void | |
| private static void | |
| private static int | processOutOfFlowContent(LayoutContext c, LineBox current, BlockBox block, int available, List<FloatLayoutResult> pendingFloats)
|
| private static void | saveLine(LineBox current, LayoutContext c, BlockBox block, int minHeight, int maxAvailableWidth, List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePCs, List<Layer> pendingInlineLayers, MarkerData markerData, int contentStart, boolean alwaysBreak)
|
| private static void | startFirstLetterInlineLayoutBox(LayoutContext c, InlineBoxing.
|
| private static void | startInlineBlock(LayoutContext c, BlockBox box, int initialY, int breakAtLine, byte blockLayoutDirection, InlineBoxing.
|
| private static void | startInlineBox(LayoutContext c, InlineBoxing.
|
| private static InlineBoxing. | startInlineText(LayoutContext c, LineBreakContext lbContext, InlineBox inlineBox, InlineBoxing.
Trys to consume the text in lbContext. |
| private static void | startNewInlineLine(LayoutContext c, BlockBox box, int breakAtLine, byte blockLayoutDirection, InlineBoxing.
|
| private static void |
| InlineBoxing | back to summary |
|---|---|
| private InlineBoxing() | |
| addBoxId | back to summary |
|---|---|
| private static void addBoxId(LayoutContext c, InlineBoxing. | |
| addFirstLetterBox | back to summary |
|---|---|
| private static InlineLayoutBox addFirstLetterBox(LayoutContext c, LineBox current, InlineLayoutBox currentIB, LineBreakContext lbContext, int maxAvailableWidth, int remainingWidth, byte textDirection) | |
| addOpenInlineBoxes | back to summary |
|---|---|
| private static InlineLayoutBox addOpenInlineBoxes(LayoutContext c, LineBox line, List<InlineBox> openParents, int cbWidth, Map<InlineBox, InlineLayoutBox> iBMap) We have to convert this HTML (angle brackets replaced with square brackets): [one][two]Two lines[/two][/one]to (with parent child relationship specified by indentation):
[line-box] (LineBox)
[one] (InlineLayoutBox)
[two] (InlineLayoutBox)
Two (InlineText)
[/two]
[/one]
[/line-box]
[line-box] (LineBox)
[one] (InlineLayoutBox)
[two] (InlineLayoutBox)
lines (InlineText)
[/two]
[/one]
[/line-box]
In this case the openParents param would be a flat list of [one][two]
as InlineBox objects at the start of the second line.
| |
| alignInlineContent | back to summary |
|---|---|
| private static void alignInlineContent(LayoutContext c, Box box, float ascent, float descent, VerticalAlignContext vaContext) | |
| alignLine | back to summary |
|---|---|
| private static void alignLine(final LayoutContext c, final LineBox current, final int maxAvailableWidth) | |
| calculateInlineMeasurements | back to summary |
|---|---|
| private static InlineBoxMeasurements calculateInlineMeasurements(LayoutContext c, InlineLayoutBox iB, VerticalAlignContext vaContext) | |
| calculateTextDecorations | back to summary |
|---|---|
| public static List | |
| createDefaultStrutMetrics | back to summary |
|---|---|
| public static StrutMetrics createDefaultStrutMetrics(LayoutContext c, Box container) | |
| endInlineBox | back to summary |
|---|---|
| private static void endInlineBox(LayoutContext c, InlineBoxing. | |
| finishPendingInlineLayers | back to summary |
|---|---|
| private static void finishPendingInlineLayers(LayoutContext c, List<Layer> layers) | |
| getInitialMeasurements | back to summary |
|---|---|
| private static InlineBoxMeasurements getInitialMeasurements(LayoutContext c, Box container, FSFontMetrics strutM) | |
| hasTrimmableLeadingSpace | back to summary |
|---|---|
| private static boolean hasTrimmableLeadingSpace(LineBox line, CalculatedStyle style, LineBreakContext lbContext, boolean zeroWidthInlineBlock) | |
| isAlwaysBreak | back to summary |
|---|---|
| private static boolean isAlwaysBreak(LayoutContext c, BlockBox parent, int breakAtLine, int lineOffset) | |
| layoutContent | back to summary |
|---|---|
| public static void layoutContent(LayoutContext c, BlockBox box, int initialY, int breakAtLine) | |
| layoutInlineBlockContent | back to summary |
|---|---|
| private static void layoutInlineBlockContent(LayoutContext c, BlockBox containingBlock, BlockBox inlineBlock, int initialY) | |
| layoutText | back to summary |
|---|---|
| private static InlineText layoutText(LayoutContext c, CalculatedStyle style, int remainingWidth, LineBreakContext lbContext, boolean needFirstLetter, byte textDirection, boolean tryToBreakAnywhere, int lineWidth, boolean forceOutput) | |
| moveInlineContents | back to summary |
|---|---|
| private static void moveInlineContents(InlineLayoutBox box, int ty) | |
| moveLineContents | back to summary |
|---|---|
| private static void moveLineContents(LineBox current, int ty) | |
| newLine | back to summary |
|---|---|
| private static LineBox newLine(LayoutContext c, LineBox previousLine, Box box) | |
| newLine | back to summary |
|---|---|
| private static LineBox newLine(LayoutContext c, int y, Box box) | |
| positionHorizontally | back to summary |
|---|---|
| public static int positionHorizontally(CssContext c, Box current, int start) | |
| positionHorizontally | back to summary |
|---|---|
| private static int positionHorizontally(CssContext c, InlineLayoutBox current, int start) | |
| positionHorizontallyILBRTL | back to summary |
|---|---|
| private static int positionHorizontallyILBRTL(CssContext c, InlineLayoutBox current, int start, int width) | |
| positionHorizontallyRTL | back to summary |
|---|---|
| public static int positionHorizontallyRTL(CssContext c, Box current, int start, int width) Attempts to layout inline boxes from right to left.
| |
| positionInlineBlockVertically | back to summary |
|---|---|
| private static void positionInlineBlockVertically(LayoutContext c, VerticalAlignContext vaContext, BlockBox inlineBlock) | |
| positionInlineChildrenVertically | back to summary |
|---|---|
| private static void positionInlineChildrenVertically(LayoutContext c, InlineLayoutBox current, VerticalAlignContext vaContext) | |
| positionInlineContentVertically | back to summary |
|---|---|
| private static void positionInlineContentVertically(LayoutContext c, VerticalAlignContext vaContext, Box child) | |
| positionInlineVertically | back to summary |
|---|---|
| private static void positionInlineVertically(LayoutContext c, VerticalAlignContext vaContext, InlineLayoutBox iB) | |
| positionVertically | back to summary |
|---|---|
| private static void positionVertically(LayoutContext c, Box container, LineBox current, MarkerData markerData) | |
| processOutOfFlowContent | back to summary |
|---|---|
| private static int processOutOfFlowContent(LayoutContext c, LineBox current, BlockBox block, int available, List<FloatLayoutResult> pendingFloats) | |
| saveLine | back to summary |
|---|---|
| private static void saveLine(LineBox current, LayoutContext c, BlockBox block, int minHeight, int maxAvailableWidth, List<FloatLayoutResult> pendingFloats, boolean hasFirstLinePCs, List<Layer> pendingInlineLayers, MarkerData markerData, int contentStart, boolean alwaysBreak) | |
| startFirstLetterInlineLayoutBox | back to summary |
|---|---|
| private static void startFirstLetterInlineLayoutBox(LayoutContext c, InlineBoxing. | |
| startInlineBlock | back to summary |
|---|---|
| private static void startInlineBlock(LayoutContext c, BlockBox box, int initialY, int breakAtLine, byte blockLayoutDirection, InlineBoxing. | |
| startInlineBox | back to summary |
|---|---|
| private static void startInlineBox(LayoutContext c, InlineBoxing. | |
| startInlineText | back to summary |
|---|---|
| private static InlineBoxing. Trys to consume the text in lbContext. If successful it creates an InlineText and adds it to the current inline layout box. Otherwise, if there are floats and the current line is otherwise empty, moves below float and trys again. Otherwise, trys again on a new line. | |
| startNewInlineLine | back to summary |
|---|---|
| private static void startNewInlineLine(LayoutContext c, BlockBox box, int breakAtLine, byte blockLayoutDirection, InlineBoxing. | |
| trimLeadingSpace | back to summary |
|---|---|
| private static void trimLeadingSpace(LineBreakContext lbContext) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| maxAvailableWidth | back to summary |
|---|---|
| pack-priv final int maxAvailableWidth | |
| pendingLeftMBP | back to summary |
|---|---|
| pack-priv int pendingLeftMBP | |
| pendingRightMBP | back to summary |
|---|---|
| pack-priv int pendingRightMBP | |
| remainingWidth | back to summary |
|---|---|
| pack-priv int remainingWidth | |
| SpaceVariables | back to summary |
|---|---|
| pack-priv SpaceVariables(int maxWidth) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final InlineBoxing. | |
| public static final InlineBoxing. | |
| public static final InlineBoxing. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static InlineBoxing. | |
| public static InlineBoxing. |
| LINE_FINISHED | back to summary |
|---|---|
| public static final InlineBoxing. | |
| RECONSUME_BELOW_FLOATS | back to summary |
|---|---|
| public static final InlineBoxing. | |
| RECONSUME_UNBREAKABLE_ON_NEW_LINE | back to summary |
|---|---|
| public static final InlineBoxing. | |
| StartInlineTextResult | back to summary |
|---|---|
| private StartInlineTextResult() | |
| valueOf | back to summary |
|---|---|
| public static InlineBoxing. | |
| values | back to summary |
|---|---|
| public static InlineBoxing. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv InlineLayoutBox | |
| pack-priv LineBox |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| layoutBox | back to summary |
|---|---|
| pack-priv InlineLayoutBox layoutBox | |
| line | back to summary |
|---|---|
| pack-priv LineBox line | |
| StateVariables | back to summary |
|---|---|
| pack-priv StateVariables() | |