public static Paragraph createParagraph(ChainedProperties props) { Paragraph p = new Paragraph(); createParagraph(p, props); return p; }
/** * Gets a HyphenationEvent based on the hyphenation entry in a HashMap. * @param props a HashMap with properties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(HashMap props) { return getHyphenation((String) props.get("hyphenation")); }
public void setInterfaceProps(HashMap interfaceProps) { this.interfaceProps = interfaceProps; FontFactoryImp ff = null; if (interfaceProps != null) ff = (FontFactoryImp) interfaceProps.get("font_factory"); if (ff != null) factoryProperties.setFontImp(ff); }
return; FactoryProperties.insertStyle(h, cprops); if (tag.equals(HtmlTags.ANCHOR)) { cprops.addToChain(tag, h); .createChunk("\n", cprops)); return; if (currentParagraph == null) { currentParagraph = FactoryProperties .createParagraph(cprops); pendingLI = true; cprops.addToChain(tag, h); ListItem item = FactoryProperties.createListItem(cprops); stack.push(item); return;
public Chunk createChunk(String text, ChainedProperties props) { Font font = getFont(props); float size = font.getSize(); size /= 2; Chunk ck = new Chunk(text, font); if (props.hasProperty("sub")) ck.setTextRise(-size); else if (props.hasProperty("sup")) ck.setTextRise(size); ck.setHyphenation(getHyphenation(props)); return ck; }
p.setAlignment(Element.ALIGN_JUSTIFIED); p.setHyphenation(getHyphenation(props)); setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) {
if (isPRE) { if (currentParagraph == null) { currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(content, cprops); currentParagraph.add(chunk); return; currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(buf.toString(), cprops); currentParagraph.add(chunk);
return; FactoryProperties.insertStyle(h, cprops); if (tag.equals(HtmlTags.ANCHOR)) { cprops.addToChain(tag, h); .createChunk("\n", cprops)); return; if (currentParagraph == null) { currentParagraph = FactoryProperties .createParagraph(cprops); pendingLI = true; cprops.addToChain(tag, h); ListItem item = FactoryProperties.createListItem(cprops); stack.push(item); return;
public Chunk createChunk(String text, ChainedProperties props) { Font font = getFont(props); float size = font.getSize(); size /= 2; Chunk ck = new Chunk(text, font); if (props.hasProperty("sub")) ck.setTextRise(-size); else if (props.hasProperty("sup")) ck.setTextRise(size); ck.setHyphenation(getHyphenation(props)); return ck; }
p.setAlignment(Element.ALIGN_JUSTIFIED); p.setHyphenation(getHyphenation(props)); setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) {
if (isPRE) { if (currentParagraph == null) { currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(content, cprops); currentParagraph.add(chunk); return; currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(buf.toString(), cprops); currentParagraph.add(chunk);
return; FactoryProperties.insertStyle(h, cprops); if (tag.equals(HtmlTags.ANCHOR)) { cprops.addToChain(tag, h); .createChunk("\n", cprops)); return; if (currentParagraph == null) { currentParagraph = FactoryProperties .createParagraph(cprops); pendingLI = true; cprops.addToChain(tag, h); ListItem item = FactoryProperties.createListItem(cprops); stack.push(item); return;
public Chunk createChunk(String text, ChainedProperties props) { Font font = getFont(props); float size = font.getSize(); size /= 2; Chunk ck = new Chunk(text, font); if (props.hasProperty("sub")) ck.setTextRise(-size); else if (props.hasProperty("sup")) ck.setTextRise(size); ck.setHyphenation(getHyphenation(props)); return ck; }
p.setAlignment(Element.ALIGN_JUSTIFIED); p.setHyphenation(getHyphenation(props)); setParagraphLeading(p, props.getProperty("leading")); value = props.getProperty("before"); if (value != null) {
if (isPRE) { if (currentParagraph == null) { currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(content, cprops); currentParagraph.add(chunk); return; currentParagraph = FactoryProperties.createParagraph(cprops); Chunk chunk = factoryProperties.createChunk(buf.toString(), cprops); currentParagraph.add(chunk);
/** * Gets a HyphenationEvent based on the hyphenation entry in a HashMap. * @param props a HashMap with properties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(HashMap props) { return getHyphenation((String) props.get("hyphenation")); }
public static ListItem createListItem(ChainedProperties props) { ListItem p = new ListItem(); createParagraph(p, props); return p; }
public void setInterfaceProps(HashMap interfaceProps) { this.interfaceProps = interfaceProps; FontProvider ff = null; if (interfaceProps != null) ff = (FontProvider) interfaceProps.get("font_factory"); if (ff != null) factoryProperties.setFontImp(ff); }
/** * Gets a HyphenationEvent based on the hyphenation entry in a HashMap. * @param props a HashMap with properties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(HashMap props) { return getHyphenation((String) props.get("hyphenation")); }
public static ListItem createListItem(ChainedProperties props) { ListItem p = new ListItem(); createParagraph(p, props); return p; }