All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xhtmlrenderer.test.ElementReplacer Maven / Gradle / Ivy

Go to download

Flying Saucer is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code as well as Java2D output.

There is a newer version: 9.11.0
Show newest version
package org.xhtmlrenderer.test;

import org.xhtmlrenderer.layout.LayoutContext;
import org.xhtmlrenderer.extend.ReplacedElement;
import org.xhtmlrenderer.extend.UserAgentCallback;
import org.xhtmlrenderer.render.BlockBox;
import org.w3c.dom.Element;

/**
 * @author patrick
*/
public abstract class ElementReplacer {
    public abstract boolean isElementNameMatch();

    public abstract String getElementNameMatch();

    public abstract boolean accept(LayoutContext context, Element element);

    public abstract ReplacedElement replace(final LayoutContext context,
                                   final BlockBox box,
                                   final UserAgentCallback uac,
                                   final int cssWidth,
                                   final int cssHeight
    );

    public abstract void clear(final Element element);

    public abstract void reset();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy