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

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

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

import net.sf.jpluck.plucker.Paragraph;

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

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

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

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.