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 Brush {
24: private int m_xorigin = 0;
25: private int m_yorigin = 0;
26: private int m_style = 0;
27: private byte[] m_pattern = new byte[8];
28:
29: public Brush() {
30: }
31:
32: public int getXOrigin() {
33: return m_xorigin;
34: }
35:
36: public int getYOrigin() {
37: return m_yorigin;
38: }
39:
40: public int getStyle() {
41: return m_style;
42: }
43:
44: public byte[] getPattern() {
45: return m_pattern;
46: }
47:
48: public void setXOrigin(int xorigin) {
49: m_xorigin = xorigin;
50: }
51:
52: public void setYOrigin(int yorigin) {
53: m_yorigin = yorigin;
54: }
55:
56: public void setStyle(int style) {
57: m_style = style;
58: }
59:
60: public void setPattern(byte[] pattern) {
61: m_pattern = pattern;
62: }
63:
64: public void reset() {
65: m_xorigin = 0;
66: m_yorigin = 0;
67: m_style = 0;
68: m_pattern = new byte[8];
69: }
70: }
|