View Javadoc
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  public class PosterParams extends ContactParams implements Cloneable {
16  	private	Poster	poster;
17  
18  	private	XY	sheetXY = new XY();
19  	private	XY	masterPicXY = new XY();
20  	private	XY	sheetsXY = new XY();
21  	private	XY	generatedOffsetXY = new XY();
22  
23  	private	boolean	calibration = false;
24  
25  	/* (non-Javadoc)
26  	 * @see java.lang.Object#clone()
27  	 */
28  	@Override
29  	public PosterParams clone() throws CloneNotSupportedException {
30  		PosterParams pp = (PosterParams)super.clone();
31  		pp.sheetXY = this.sheetXY.clone();
32  		pp.sheetsXY = this.sheetsXY.clone();
33  		pp.masterPicXY = this.masterPicXY.clone();
34  		pp.generatedOffsetXY = this.generatedOffsetXY.clone();
35  		return(pp);
36  	}
37  	/**
38  	 * @return the poster
39  	 */
40  	public Poster getPoster() {
41  		return poster;
42  	}
43  	/**
44  	 * @param poster the poster to set
45  	 */
46  	public void setPoster(Poster poster) {
47  		this.poster = poster;
48  	}
49  	/**
50  	 * @return the sheetXY
51  	 */
52  	public XY getSheetXY() {
53  		return sheetXY;
54  	}
55  	/**
56  	 * @param sheetXY the sheetXY to set
57  	 */
58  	public void setSheetXY(XY sheetXY) {
59  		this.sheetXY = sheetXY;
60  	}
61  	/**
62  	 * @return the masterPicWidth
63  	 */
64  	public XY getMasterPicXY() {
65  		return masterPicXY;
66  	}
67  	/**
68  	 * @param masterPicXY the width and height of the masterPic to set
69  	 */
70  	public void setMasterPicXY(XY masterPicXY) {
71  		this.masterPicXY = masterPicXY;
72  	}
73  
74  	/**
75  	 * @return the sheetsXY
76  	 */
77  	public XY getSheetsXY() {
78  		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  		this.sheetsXY = sheetsXY;
85  	}
86  	/**
87  	 * @return the generatedOffsetX
88  	 */
89  	public XY getGeneratedOffsetXY() {
90  		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  		this.generatedOffsetXY = generatedOffsetXY;
97  	}
98  	/**
99  	 * @return the calibration
100 	 */
101 	public boolean isCalibration() {
102 		return calibration;
103 	}
104 	/**
105 	 * @param calibration the calibration to set
106 	 */
107 	public void setCalibration() {
108 		this.calibration = true;
109 	}
110 
111 }