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

inspired.pdf.unbox.elements.internal.ContainerLayout Maven / Gradle / Ivy

There is a newer version: 0.9.3
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy