Coverage Report - com.buckosoft.PicMan.domain.PosterParams
 
Classes in this File Line Coverage Branch Coverage Complexity
PosterParams
0%
0/30
N/A
1
 
 1  
 /******************************************************************************
 2  
  * PosterParams.java - Define how to make one poster sheet
 3  
  * 
 4  
  * PicMan - The BuckoSoft Picture Manager in Java
 5  
  * Copyright(c) 2012 - Dick Balaska
 6  
  * 
 7  
  */
 8  
 package com.buckosoft.PicMan.domain;
 9  
 
 10  
 /** Describe the parameters to make a single sheet from a Poster
 11  
  * @author Dick Balaska
 12  
  * @since 2012/08/17
 13  
  * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/main/java/com/buckosoft/PicMan/domain/PosterParams.java">PosterParams.java</a>
 14  
  */
 15  0
 public class PosterParams extends ContactParams implements Cloneable {
 16  
         private        Poster        poster;
 17  
 
 18  0
         private        XY        sheetXY = new XY();
 19  0
         private        XY        masterPicXY = new XY();
 20  0
         private        XY        sheetsXY = new XY();
 21  0
         private        XY        generatedOffsetXY = new XY();
 22  
 
 23  0
         private        boolean        calibration = false;
 24  
 
 25  
         /* (non-Javadoc)
 26  
          * @see java.lang.Object#clone()
 27  
          */
 28  
         @Override
 29  
         public PosterParams clone() throws CloneNotSupportedException {
 30  0
                 PosterParams pp = (PosterParams)super.clone();
 31  0
                 pp.sheetXY = this.sheetXY.clone();
 32  0
                 pp.sheetsXY = this.sheetsXY.clone();
 33  0
                 pp.masterPicXY = this.masterPicXY.clone();
 34  0
                 pp.generatedOffsetXY = this.generatedOffsetXY.clone();
 35  0
                 return(pp);
 36  
         }
 37  
         /**
 38  
          * @return the poster
 39  
          */
 40  
         public Poster getPoster() {
 41  0
                 return poster;
 42  
         }
 43  
         /**
 44  
          * @param poster the poster to set
 45  
          */
 46  
         public void setPoster(Poster poster) {
 47  0
                 this.poster = poster;
 48  0
         }
 49  
         /**
 50  
          * @return the sheetXY
 51  
          */
 52  
         public XY getSheetXY() {
 53  0
                 return sheetXY;
 54  
         }
 55  
         /**
 56  
          * @param sheetXY the sheetXY to set
 57  
          */
 58  
         public void setSheetXY(XY sheetXY) {
 59  0
                 this.sheetXY = sheetXY;
 60  0
         }
 61  
         /**
 62  
          * @return the masterPicWidth
 63  
          */
 64  
         public XY getMasterPicXY() {
 65  0
                 return masterPicXY;
 66  
         }
 67  
         /**
 68  
          * @param masterPicXY the width and height of the masterPic to set
 69  
          */
 70  
         public void setMasterPicXY(XY masterPicXY) {
 71  0
                 this.masterPicXY = masterPicXY;
 72  0
         }
 73  
 
 74  
         /**
 75  
          * @return the sheetsXY
 76  
          */
 77  
         public XY getSheetsXY() {
 78  0
                 return sheetsXY;
 79  
         }
 80  
         /** Set the number of horizontal and vertical sheets that make up the full Poster set
 81  
          * @param sheetsX the sheetsX to set
 82  
          */
 83  
         public void setSheetsXY(XY sheetsXY) {
 84  0
                 this.sheetsXY = sheetsXY;
 85  0
         }
 86  
         /**
 87  
          * @return the generatedOffsetX
 88  
          */
 89  
         public XY getGeneratedOffsetXY() {
 90  0
                 return generatedOffsetXY;
 91  
         }
 92  
         /** The poster set is centered on the available sheets.  This point is the upper left corner, in pixels, of the 0,0 sheet to start printing on.
 93  
          * @param generatedOffsetX the generatedOffsetX to set
 94  
          */
 95  
         public void setGeneratedOffsetXY(XY generatedOffsetXY) {
 96  0
                 this.generatedOffsetXY = generatedOffsetXY;
 97  0
         }
 98  
         /**
 99  
          * @return the calibration
 100  
          */
 101  
         public boolean isCalibration() {
 102  0
                 return calibration;
 103  
         }
 104  
         /**
 105  
          * @param calibration the calibration to set
 106  
          */
 107  
         public void setCalibration() {
 108  0
                 this.calibration = true;
 109  0
         }
 110  
 
 111  
 }