@Test public void resolveSpacingBeforeIs10() throws IOException { parent.addChild(second); first.getCSS().put("margin-bottom", "12pt"); second.getCSS().put("margin-top", "22pt"); applier.apply(firstPara, first, configuration); applier.apply(secondPara, second, configuration); assertEquals(22 - 12, secondPara.getSpacingBefore(), 0); }
public Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration) { return apply(p, t, configuration, null, null); }
ParagraphCssApplier implements CssApplier<Paragraph> { public Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration) { return apply(p, t, configuration, null, null); } }
ParagraphCssApplier implements CssApplier<Paragraph> { public Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration) { return apply(p, t, configuration, null, null); } ParagraphCssApplier(final CssAppliers appliers); }
ParagraphCssApplier implements CssApplier<Paragraph> { public Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration) { return apply(p, t, configuration, null, null); } ParagraphCssApplier(final CssAppliers appliers); Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration); Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration, final PageSizeContainable psc, final HtmlPipelineContext ctx); }
ParagraphCssApplier implements CssApplier<Paragraph> { public Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration) { return apply(p, t, configuration, null, null); } ParagraphCssApplier(final CssAppliers appliers); Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration); Paragraph apply(final Paragraph p, final Tag t, final MarginMemory configuration, final PageSizeContainable psc, final HtmlPipelineContext ctx);  }