001: ///////////////////////////////////////////////////////////////////////////////
002: //
003: // This program is free software; you can redistribute it and/or modify
004: // it under the terms of the GNU General Public License and GNU Library
005: // General Public License as published by the Free Software Foundation;
006: // either version 2, or (at your option) any later version.
007: //
008: // This program is distributed in the hope that it will be useful,
009: // but WITHOUT ANY WARRANTY; without even the implied warranty of
010: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
011: // GNU General Public License and GNU Library General Public License
012: // for more details.
013: //
014: // You should have received a copy of the GNU General Public License
015: // and GNU Library General Public License along with this program; if
016: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
017: // MA 02139, USA.
018: //
019: ///////////////////////////////////////////////////////////////////////////////
020:
021: package org.rdesktop.server.rdp.orders;
022:
023: public class Text2Order implements Order {
024: private int m_x = 0;
025: private int m_y = 0;
026: private int m_font = 0;
027: private int m_flags = 0;
028: private int m_mixmode = 0;
029: private int m_fgcolor = 0;
030: private int m_bgcolor = 0;
031: private int m_unknown = 0;
032:
033: private int m_clipleft = 0;
034: private int m_clipright = 0;
035: private int m_cliptop = 0;
036: private int m_clipbottom = 0;
037: private int m_boxleft = 0;
038: private int m_boxtop = 0;
039: private int m_boxright = 0;
040: private int m_boxbottom = 0;
041:
042: private int m_opcode = 0;
043: private int m_length = 0;
044: byte[] m_text = new byte[256];
045:
046: public Text2Order() {
047: }
048:
049: public void setX(int x) {
050: m_x = x;
051: }
052:
053: public int getX() {
054: return m_x;
055: }
056:
057: public void setY(int y) {
058: m_y = y;
059: }
060:
061: public int getY() {
062: return m_y;
063: }
064:
065: public void setFont(int font) {
066: m_font = font;
067: }
068:
069: public int getFont() {
070: return m_font;
071: }
072:
073: public void setFlags(int flags) {
074: m_flags = flags;
075: }
076:
077: public int getFlags() {
078: return m_flags;
079: }
080:
081: public void setMixmode(int mixmode) {
082: m_mixmode = mixmode;
083: }
084:
085: public int getMixmode() {
086: return m_mixmode;
087: }
088:
089: public void setUnknown(int unknown) {
090: m_unknown = unknown;
091: }
092:
093: public int getUnknown() {
094: return m_unknown;
095: }
096:
097: public void setForegroundColor(int fgcolor) {
098: m_fgcolor = fgcolor;
099: }
100:
101: public int getForegroundColor() {
102: return m_fgcolor;
103: }
104:
105: public int getBackgroundColor() {
106: return m_bgcolor;
107: }
108:
109: public void setBackgroundColor(int bgcolor) {
110: m_bgcolor = bgcolor;
111: }
112:
113: public void setClipLeft(int clipleft) {
114: m_clipleft = clipleft;
115: }
116:
117: public int getClipLeft() {
118: return m_clipleft;
119: }
120:
121: public void setClipRight(int clipright) {
122: m_clipright = clipright;
123: }
124:
125: public int getClipRight() {
126: return m_clipright;
127: }
128:
129: public void setClipTop(int cliptop) {
130: m_cliptop = cliptop;
131: }
132:
133: public int getClipTop() {
134: return m_cliptop;
135: }
136:
137: public void setClipBottom(int clipbottom) {
138: m_clipbottom = clipbottom;
139: }
140:
141: public int getClipBottom() {
142: return m_clipbottom;
143: }
144:
145: public void setBoxLeft(int boxleft) {
146: m_boxleft = boxleft;
147: }
148:
149: public int getBoxLeft() {
150: return m_boxleft;
151: }
152:
153: public void setBoxRight(int boxright) {
154: m_boxright = boxright;
155: }
156:
157: public int getBoxRight() {
158: return m_boxright;
159: }
160:
161: public void setBoxTop(int boxtop) {
162: m_boxtop = boxtop;
163: }
164:
165: public int getBoxTop() {
166: return m_boxtop;
167: }
168:
169: public void setBoxBottom(int boxbottom) {
170: m_boxbottom = boxbottom;
171: }
172:
173: public int getBoxBottom() {
174: return m_boxbottom;
175: }
176:
177: public int getOpcode() {
178: return m_opcode;
179: }
180:
181: public void setOpcode(int opcode) {
182: m_opcode = opcode;
183: }
184:
185: public void setLength(int length) {
186: m_length = length;
187: }
188:
189: public int getLength() {
190: return m_length;
191: }
192:
193: public byte[] getText() {
194: return m_text;
195: }
196:
197: public void setText(byte[] text) {
198: m_text = text;
199: }
200:
201: public void reset() {
202: m_x = 0;
203: m_y = 0;
204: m_font = 0;
205: m_flags = 0;
206: m_mixmode = 0;
207: m_fgcolor = 0;
208: m_bgcolor = 0;
209: m_unknown = 0;
210:
211: m_clipleft = 0;
212: m_clipright = 0;
213: m_cliptop = 0;
214: m_clipbottom = 0;
215: m_boxleft = 0;
216: m_boxtop = 0;
217: m_boxright = 0;
218: m_boxbottom = 0;
219:
220: m_opcode = 0;
221: m_length = 0;
222: m_text = new byte[256];
223: }
224: }
|