01: ///////////////////////////////////////////////////////////////////////////////
02: //
03: // This program is free software; you can redistribute it and/or modify
04: // it under the terms of the GNU General Public License and GNU Library
05: // General Public License as published by the Free Software Foundation;
06: // either version 2, or (at your option) any later version.
07: //
08: // This program is distributed in the hope that it will be useful,
09: // but WITHOUT ANY WARRANTY; without even the implied warranty of
10: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: // GNU General Public License and GNU Library General Public License
12: // for more details.
13: //
14: // You should have received a copy of the GNU General Public License
15: // and GNU Library General Public License along with this program; if
16: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
17: // MA 02139, USA.
18: //
19: ///////////////////////////////////////////////////////////////////////////////
20:
21: package org.rdesktop.server.rdp.orders;
22:
23: public class RectangleOrder implements Order {
24: private int m_x = 0;
25: private int m_y = 0;
26: private int m_cx = 0;
27: private int m_cy = 0;
28: private int m_color = 0;
29:
30: public RectangleOrder() {
31: }
32:
33: public void setX(int x) {
34: m_x = x;
35: }
36:
37: public int getX() {
38: return m_x;
39: }
40:
41: public void setY(int y) {
42: m_y = y;
43: }
44:
45: public int getY() {
46: return m_y;
47: }
48:
49: public void setCX(int cx) {
50: m_cx = cx;
51: }
52:
53: public int getCX() {
54: return m_cx;
55: }
56:
57: public void setCY(int cy) {
58: m_cy = cy;
59: }
60:
61: public int getCY() {
62: return m_cy;
63: }
64:
65: public void setColor(int color) {
66: m_color = color;
67: }
68:
69: public int getColor() {
70: return m_color;
71: }
72:
73: public void reset() {
74: m_x = 0;
75: m_y = 0;
76: m_cx = 0;
77: m_cy = 0;
78: m_color = 0;
79: }
80: }
|