Coverage Report - org.jtheque.films.services.able.ICoverService
 
Classes in this File Line Coverage Branch Coverage Complexity
ICoverService
N/A
N/A
1
 
 1  
 package org.jtheque.films.services.able;
 2  
 
 3  
 import org.jtheque.films.persistence.od.able.Film;
 4  
 import org.jtheque.films.services.impl.utils.cover.Format;
 5  
 
 6  
 import java.awt.Image;
 7  
 
 8  
 /*
 9  
  * This file is part of JTheque.
 10  
  *
 11  
  * JTheque is free software: you can redistribute it and/or modify
 12  
  * it under the terms of the GNU General Public License as published by
 13  
  * the Free Software Foundation, either version 3 of the License.
 14  
  *
 15  
  * JTheque is distributed in the hope that it will be useful,
 16  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 18  
  * GNU General Public License for more details.
 19  
  *
 20  
  * You should have received a copy of the GNU General Public License
 21  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 22  
  */
 23  
 
 24  
 /**
 25  
  * A cover service specification.
 26  
  *
 27  
  * @author Baptiste Wicht
 28  
  */
 29  
 public interface ICoverService {
 30  
     /**
 31  
      * Return all the cover formats.
 32  
      *
 33  
      * @return An Array containing all the cover formats.
 34  
      */
 35  
     Format[] getFormats();
 36  
 
 37  
     /**
 38  
      * Return the image of a report.
 39  
      *
 40  
      * @param film   The film.
 41  
      * @param format The format.
 42  
      * @return The image.
 43  
      */
 44  
     Image getReportImage(Film film, Format format);
 45  
 
 46  
     /**
 47  
      * Print the current report.
 48  
      */
 49  
     void printCurrentReport();
 50  
 
 51  
     /**
 52  
      * Export the current report to PDF.
 53  
      */
 54  
     void exportCurrentReportToPDF();
 55  
 }