View Javadoc

1   /*
2    * sbxb library, part of ULMgen product
3    * Copyright (C) 2003,2005 Thierry Beigbeder
4    *
5    * This program is free software; you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation; either version 2 of the License, or
8    * (at your option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18   */
19  /*
20   * $Header: $
21   * $Revision: $
22   * $Date: $
23   *
24   * History :
25   * Who       yyyy/mm/dd   Action
26   * --------  ----------   ------
27   */
28  
29  
30  package org.otvl.sbxbsamp.simple;
31  
32  
33  // Insert here additional imports
34  
35  /***
36   * A Rectangle.
37   * @author
38   * @version
39   */
40  
41  
42  public class Rectangle
43  	extends Shape
44  
45  {
46  	/*-------------------------------------------------------------------------
47  	 * Attributes declaration
48  	 *-------------------------------------------------------------------------*/
49  	/***
50  	 * 
51  	 */
52  	private String width;
53  	/***
54  	 * 
55  	 */
56  	private String height;
57  
58  
59  	/*-------------------------------------------------------------------------
60  	 * Associations declaration
61  	 *-------------------------------------------------------------------------*/
62  
63  
64  	/*-------------------------------------------------------------------------
65  	 * Operations
66  	 *-------------------------------------------------------------------------*/
67  
68  
69  	/*-------------------------------------------------------------------------
70  	 * Attribute accessors
71  	 *-------------------------------------------------------------------------*/
72  	//------------------------
73  	// Accessors for attribute width
74  	//------------------------
75  	/***
76  	 * Returns the width.<br/>
77  	 * 
78  	 * @return String
79  	 */
80  	public String getWidth() {
81  		String vWidth = width;
82  		return vWidth;
83  	}
84  
85  	/***
86  	 * Sets the width.<br/>
87  	 * 
88  	 * @param width The width to set
89  	 */
90  	public void setWidth(String width) {
91  		this.width = width;
92  	}
93  
94  	//------------------------
95  	// Accessors for attribute height
96  	//------------------------
97  	/***
98  	 * Returns the height.<br/>
99  	 * 
100 	 * @return String
101 	 */
102 	public String getHeight() {
103 		String vHeight = height;
104 		return vHeight;
105 	}
106 
107 	/***
108 	 * Sets the height.<br/>
109 	 * 
110 	 * @param height The height to set
111 	 */
112 	public void setHeight(String height) {
113 		this.height = height;
114 	}
115 
116 
117 
118 	/*-------------------------------------------------------------------------
119 	 * Association accessors
120 	 *-------------------------------------------------------------------------*/
121 
122 }