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

tech.grasshopper.reporter.structure.Display Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package tech.grasshopper.reporter.structure;

import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;

import com.aventstack.extentreports.model.Report;

import lombok.Builder.Default;
import lombok.Data;
import lombok.experimental.SuperBuilder;
import tech.grasshopper.reporter.config.ExtentPDFReporterConfig;
import tech.grasshopper.reporter.font.ReportFont;

@Data
@SuperBuilder
public abstract class Display {

	public static final float CONTENT_START_Y = 790f;
	public static final float CONTENT_END_Y = 40f;
	public static final float CONTENT_MARGIN_TOP_Y = 50f;

	protected PDPageContentStream content;

	protected ExtentPDFReporterConfig config;

	protected PDDocument document;

	protected ReportFont reportFont;

	protected PDPage page;

	protected Report report;

	protected float ylocation;
	@Default
	protected float xlocation = 50f;

	public abstract void display();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy