inspired.pdf.unbox.elements.internal.ContainerLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbox-pdf Show documentation
Show all versions of unbox-pdf Show documentation
Unbox PDF is a toolkit for PDF creation based on Apache PDF Box.
package inspired.pdf.unbox.elements.internal;
import inspired.pdf.unbox.Bounds;
import inspired.pdf.unbox.Document;
import inspired.pdf.unbox.elements.Container;
import inspired.pdf.unbox.elements.PdfElement;
import java.util.List;
/**
* Lyout for a Container.
*/
public interface ContainerLayout {
/**
* Render the container and it's elements.
* @param document The document.
* @param viewPort The view port to render the container in.
* @param container The container.
* @param elements The elements of the container.
* @return The height of the rendered elements.
*/
float render(Document document, Bounds viewPort, Container container, List elements);
float innerHeight(Bounds viewPort, Container container, List elements);
}