Package net.sf.jpluck.plucker.parsing.html

Source Code of net.sf.jpluck.plucker.parsing.html.H2Handler

package net.sf.jpluck.plucker.parsing.html;

import net.sf.jpluck.plucker.Paragraph;

public class H2Handler implements TagHandler, Alignable {
    public void start(HTMLSerializer ser, StyledElement elem) {
        Style style = new Style();
        style.setHeading(2);
        elem.setStyle(style);
        Paragraph p = ser.addParagraph();
        p.setSpacing(3);
    }

    public void end(HTMLSerializer ser, StyledElement elem) {
        ser.addParagraph(3);
    }
}
TOP

Related Classes of net.sf.jpluck.plucker.parsing.html.H2Handler

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.