comparison src/org/tn5250j/framework/tn5250/Rect.java @ 112:77ac18bc1b2f

cleanup java formatting
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 13:03:01 -0700
parents b29b39f386a4
children
comparison
equal deleted inserted replaced
111:6a0ad4d384ea 112:77ac18bc1b2f
1 /** 1 /**
2 * $Id: Rect.java 1092 2011-01-16 20:27:56Z master_jaf $ 2 * $Id: Rect.java 1092 2011-01-16 20:27:56Z master_jaf $
3 * 3 *
4 * Title: tn5250J 4 * Title: tn5250J
5 * Copyright: Copyright (c) 2001,2009 5 * Copyright: Copyright (c) 2001,2009
6 * Company: 6 * Company:
7 * @author: master_jaf 7 * @author: master_jaf
8 * 8 *
31 * Simplified rectangle class. Very much similar like java.awt.Rectangle, 31 * Simplified rectangle class. Very much similar like java.awt.Rectangle,
32 * but we want to decouple the packages ... 32 * but we want to decouple the packages ...
33 */ 33 */
34 public class Rect { 34 public class Rect {
35 35
36 /* default */ int x; 36 /* default */ int x;
37 /* default */ int y; 37 /* default */ int y;
38 /* default */ int height; 38 /* default */ int height;
39 /* default */ int width; 39 /* default */ int width;
40 40
41 /** 41 /**
42 * @param rect 42 * @param rect
43 */ 43 */
44 public void setBounds(Rect rect) { 44 public void setBounds(Rect rect) {
45 setBounds(rect.x, rect.y, rect.width, rect.height); 45 setBounds(rect.x, rect.y, rect.width, rect.height);
46 } 46 }
47 47
48 /** 48 /**
49 * @param x the new X coordinate for the upper-left corner of this rectangle 49 * @param x the new X coordinate for the upper-left corner of this rectangle
50 * @param y the new Y coordinate for the upper-left corner of this rectangle 50 * @param y the new Y coordinate for the upper-left corner of this rectangle
51 * @param width the new width for this rectangle 51 * @param width the new width for this rectangle
52 * @param height the new height for this rectangle 52 * @param height the new height for this rectangle
53 */ 53 */
54 public void setBounds(int x, int y, int width, int height) { 54 public void setBounds(int x, int y, int width, int height) {
55 this.x = x; 55 this.x = x;
56 this.y = y; 56 this.y = y;
57 this.width = width; 57 this.width = width;
58 this.height = height; 58 this.height = height;
59 } 59 }
60 60
61 } 61 }