// Path: src/knop/psfj/graphics/PsfJGraph.java
// public interface PsfJGraph {
// 	
// 	/** The normalized. */
// 	public static int NORMALIZED = 1;
// 	
// 	/** The not normalized. */
// 	public static int NOT_NORMALIZED = 2;
// 	
// 	/**
// 	 * Gets the graph.
// 	 *
// 	 * @return the graph
// 	 */
// 	public ImageProcessor getGraph();
// 	
// 	/**
// 	 * Gets the graph.
// 	 *
// 	 * @param normalized the normalized
// 	 * @return the graph
// 	 */
// 	public ImageProcessor getGraph(int normalized);
// 	
// 	/**
// 	 * Gets the title.
// 	 *
// 	 * @return the title
// 	 */
// 	public String getTitle();
// 	
// 	/**
// 	 * Gets the description.
// 	 *
// 	 * @return the description
// 	 */
// 	public String getDescription();
// 	
// 	/**
// 	 * Gets the save id.
// 	 *
// 	 * @return the save id
// 	 */
// 	public String getSaveId();
// 	
// 	/**
// 	 * Gets the short description.
// 	 *
// 	 * @return the short description
// 	 */
// 	public String getShortDescription();
// 	
// 	/**
// 	 * Gets the image icon.
// 	 *
// 	 * @return the image icon
// 	 */
// 	public ImageIcon getImageIcon();
// 	
// }


import ij.ImagePlus;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import knop.psfj.graphics.PsfJGraph;
import com.lowagie.text.BadElementException;
import com.lowagie.text.Chunk;
import com.lowagie.text.Element;
import com.lowagie.text.Font;
import com.lowagie.text.Image;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfTable;
    public Paragraph paragraph(String title){
        Paragraph paragraph=new Paragraph();
        Font font=new Font(Font.HELVETICA, 12, Font.NORMAL);
        paragraph.add(new Chunk(title, font));
        paragraph.setAlignment(Paragraph.ALIGN_LEFT);
        paragraph.setSpacingBefore(15);
        return paragraph;
    }
    
    
    public Paragraph littleNote(String note) {
   	 return littleNote(note,Paragraph.ALIGN_CENTER);
    }
    
    public Paragraph littleNote(String note,int alignement) {
    	Paragraph paragraph = new Paragraph();
    	Font font = new Font(Font.HELVETICA, 10, Font.NORMAL);
    	paragraph.add(new Chunk(note,font));
    	paragraph.setAlignment(alignement);
    	paragraph.setSpacingAfter(0);
    	return paragraph;
    }
    
    /**
     * Generates an Image ready to be added to the pdf document, based on an ImagePlus
     * @param image the ImagePlus from which the Image object will be generated
     * @param zoom the zoom to be applied to the image (0.0-100.0) as a float
     * @return an Image ready to be added to the pdf document
     */
    
// Path: src/knop/psfj/graphics/PsfJGraph.java
// public interface PsfJGraph {
// 	
// 	/** The normalized. */
// 	public static int NORMALIZED = 1;
// 	
// 	/** The not normalized. */
// 	public static int NOT_NORMALIZED = 2;
// 	
// 	/**
// 	 * Gets the graph.
// 	 *
// 	 * @return the graph
// 	 */
// 	public ImageProcessor getGraph();
// 	
// 	/**
// 	 * Gets the graph.
// 	 *
// 	 * @param normalized the normalized
// 	 * @return the graph
// 	 */
// 	public ImageProcessor getGraph(int normalized);
// 	
// 	/**
// 	 * Gets the title.
// 	 *
// 	 * @return the title
// 	 */
// 	public String getTitle();
// 	
// 	/**
// 	 * Gets the description.
// 	 *
// 	 * @return the description
// 	 */
// 	public String getDescription();
// 	
// 	/**
// 	 * Gets the save id.
// 	 *
// 	 * @return the save id
// 	 */
// 	public String getSaveId();
// 	
// 	/**
// 	 * Gets the short description.
// 	 *
// 	 * @return the short description
// 	 */
// 	public String getShortDescription();
// 	
// 	/**
// 	 * Gets the image icon.
// 	 *
// 	 * @return the image icon
// 	 */
// 	public ImageIcon getImageIcon();
// 	
// }


// Path: src/knop/psfj/resolution/ReportSections.java
import ij.ImagePlus;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import knop.psfj.graphics.PsfJGraph;
import com.lowagie.text.BadElementException;
import com.lowagie.text.Chunk;
import com.lowagie.text.Element;
import com.lowagie.text.Font;
import com.lowagie.text.Image;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfTable;

    public Paragraph paragraph(String title){
        Paragraph paragraph=new Paragraph();
        Font font=new Font(Font.HELVETICA, 12, Font.NORMAL);
        paragraph.add(new Chunk(title, font));
        paragraph.setAlignment(Paragraph.ALIGN_LEFT);
        paragraph.setSpacingBefore(15);
        return paragraph;
    }
    
    
    public Paragraph littleNote(String note) {
   	 return littleNote(note,Paragraph.ALIGN_CENTER);
    }
    
    public Paragraph littleNote(String note,int alignement) {
    	Paragraph paragraph = new Paragraph();
    	Font font = new Font(Font.HELVETICA, 10, Font.NORMAL);
    	paragraph.add(new Chunk(note,font));
    	paragraph.setAlignment(alignement);
    	paragraph.setSpacingAfter(0);
    	return paragraph;
    }
    
    /**
     * Generates an Image ready to be added to the pdf document, based on an ImagePlus
     * @param image the ImagePlus from which the Image object will be generated
     * @param zoom the zoom to be applied to the image (0.0-100.0) as a float
     * @return an Image ready to be added to the pdf document
     */
    
    public Image imagePlus(PsfJGraph graph, float zoom) {