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

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

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

import net.sf.jpluck.plucker.Paragraph;

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

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

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

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.