public class PDFWriter<T extends RealType<T>> extends Object implements ResultHandler<T>
Modifier and Type | Field and Description |
---|---|
protected List<com.itextpdf.text.Image> |
listOfPDFImages |
protected List<com.itextpdf.text.Paragraph> |
listOfPDFTexts |
protected List<com.itextpdf.text.Paragraph> |
PDFwarnings |
Constructor and Description |
---|
PDFWriter(DataContainer<T> container)
Creates a new PDFWriter that can access the container.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addImage(com.itextpdf.text.Image image,
String xLabel,
String yLabel)
Prints an image into the opened PDF.
|
protected void |
addImageToList(ij.ImagePlus imp,
String name) |
void |
handleHistogram(Histogram2D<T> histogram,
String name)
Handles a histogram the following way: create snapshot, log data, reset the
display range, apply the Fire LUT and finally store it as an iText PDF image.
|
void |
handleImage(RandomAccessibleInterval<T> image,
String name) |
void |
handleValue(String name,
double value) |
void |
handleValue(String name,
double value,
int decimals) |
void |
handleValue(String name,
String value) |
void |
handleWarning(Warning warning) |
void |
process()
The process method should start the processing of the
previously collected results.
|
protected List<com.itextpdf.text.Image> listOfPDFImages
protected List<com.itextpdf.text.Paragraph> listOfPDFTexts
protected List<com.itextpdf.text.Paragraph> PDFwarnings
public PDFWriter(DataContainer<T> container)
container
- The data container for source image datapublic void handleImage(RandomAccessibleInterval<T> image, String name)
handleImage
in interface ResultHandler<T extends RealType<T>>
public void handleHistogram(Histogram2D<T> histogram, String name)
handleHistogram
in interface ResultHandler<T extends RealType<T>>
protected void addImageToList(ij.ImagePlus imp, String name)
public void handleWarning(Warning warning)
handleWarning
in interface ResultHandler<T extends RealType<T>>
public void handleValue(String name, String value)
handleValue
in interface ResultHandler<T extends RealType<T>>
public void handleValue(String name, double value)
handleValue
in interface ResultHandler<T extends RealType<T>>
public void handleValue(String name, double value, int decimals)
handleValue
in interface ResultHandler<T extends RealType<T>>
protected void addImage(com.itextpdf.text.Image image, String xLabel, String yLabel) throws com.itextpdf.text.DocumentException, IOException
image
- The image to print.xLabel
- yLabel
- com.itextpdf.text.DocumentException
IOException
public void process()
ResultHandler
process
in interface ResultHandler<T extends RealType<T>>
Copyright © 2015–2021 Fiji. All rights reserved.