/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
private static StyleSheet getCJKStyleSheet(){ StyleSheet cjkstyle = new StyleSheet(); cjkstyle.loadTagStyle("table", "border", "0.5"); cjkstyle.loadTagStyle("table", "face", FONTNAME_JA_GOTHIC); // these two style used in CJKFactoryProperties cjkstyle.loadTagStyle("table", "cjk_encoding", FONTNAME_JA_GOTHIC_ENCODING); cjkstyle.loadTagStyle("table", "cjk_embeded", "false"); cjkstyle.loadTagStyle("th", "bgcolor", "silver"); cjkstyle.loadTagStyle("th", "font", "bold"); return cjkstyle; }
public static ArrayList parseToList(Reader reader, StyleSheet style) throws IOException { return parseToList(reader, style, null); }
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; }
public static ArrayList parseToList(Reader reader, StyleSheet style, HashMap interfaceProps) throws IOException { HTMLWorker worker = new HTMLWorker(null); if (style != null) worker.style = style; worker.document = worker; worker.setInterfaceProps(interfaceProps); worker.objectList = new ArrayList(); worker.parse(reader); return worker.objectList; }
public void startDocument() { HashMap h = new HashMap(); style.applyStyle("body", h); cprops.addToChain("body", h); }
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 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; }
public void startDocument() { HashMap h = new HashMap(); style.applyStyle("body", h); cprops.addToChain("body", h); }
/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
public static ArrayList parseToList(Reader reader, StyleSheet style) throws IOException { return parseToList(reader, style, null); }
/** * XXX - this needs some work */ private StyleSheet getStyle() { StyleSheet styles = new StyleSheet(); styles.loadTagStyle("body", "leading", "16,0"); return styles; }
public static ListItem createListItem(ChainedProperties props) { ListItem p = new ListItem(); 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 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; }
public void startDocument() { HashMap h = new HashMap(); style.applyStyle("body", h); cprops.addToChain("body", h); }
/** * Gets a HyphenationEvent based on the hyphenation entry in ChainedProperties. * @param props ChainedProperties * @return a HyphenationEvent * @since 2.1.2 */ public static HyphenationEvent getHyphenation(ChainedProperties props) { return getHyphenation(props.getProperty("hyphenation")); }
public static ArrayList parseToList(Reader reader, StyleSheet style) throws IOException { return parseToList(reader, style, null); }
public static ListItem createListItem(ChainedProperties props) { ListItem p = new ListItem(); createParagraph(p, props); return p; }