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

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

There is a newer version: 0.9.3
Show newest version
package inspired.pdf.unbox.elements.internal;

import inspired.pdf.unbox.Margin;
import inspired.pdf.unbox.Padding;
import inspired.pdf.unbox.elements.PdfElement;

public abstract class AbstractPdfElement implements PdfElement {

    private Margin margin = Margin.none();
    private Padding padding = Padding.none();

    public PdfElement with(Margin margin) {
        this.margin = margin;
        return this;
    }

    public PdfElement with(Padding padding) {
        this.padding = padding;
        return this;
    }

    @Override
    public Margin margin() {
        return margin;
    }

    public Padding padding() {
        return padding;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy