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 PatBltOrder extends DestBltOrder {
24: private int m_bgcolor = 0;
25: private int m_fgcolor = 0;
26: private Brush m_brush = null;
27:
28: public PatBltOrder() {
29: super ();
30: m_brush = new Brush();
31: }
32:
33: public void setBackgroundColor(int bgcolor) {
34: m_bgcolor = bgcolor;
35: }
36:
37: public int getBackgroundColor() {
38: return m_bgcolor;
39: }
40:
41: public void setForegroundColor(int fgcolor) {
42: m_fgcolor = fgcolor;
43: }
44:
45: public int getForegroundColor() {
46: return m_fgcolor;
47: }
48:
49: public Brush getBrush() {
50: return m_brush;
51: }
52:
53: public void reset() {
54: super .reset();
55: m_bgcolor = 0;
56: m_fgcolor = 0;
57: m_brush.reset();
58: }
59: }
|