@Test public void resolveAlignment() throws IOException { assertEquals(Element.ALIGN_LEFT, firstPara.getAlignment(), 0); first.getCSS().put("text-align", "right"); applier.apply(firstPara, first, configuration); assertEquals(Element.ALIGN_RIGHT, firstPara.getAlignment(), 0); first.getCSS().put("text-align", "left"); applier.apply(firstPara, first, configuration); assertEquals(Element.ALIGN_LEFT, firstPara.getAlignment(), 0); first.getCSS().put("text-align", "center"); applier.apply(firstPara, first, configuration); assertEquals(Element.ALIGN_CENTER, firstPara.getAlignment(), 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);  }