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 LineOrder implements Order {
024: private int m_mixmode = 0;
025: private int m_startx = 0;
026: private int m_starty = 0;
027: private int m_endx = 0;
028: private int m_endy = 0;
029: private int m_bgcolor = 0;
030: private int m_opcode = 0;
031: private Pen m_pen = null;
032:
033: public LineOrder() {
034: m_pen = new Pen();
035: }
036:
037: public void setMixmode(int mixmode) {
038: m_mixmode = mixmode;
039: }
040:
041: public int getMixmode() {
042: return m_mixmode;
043: }
044:
045: public void setStartX(int startx) {
046: m_startx = startx;
047: }
048:
049: public int getStartX() {
050: return m_startx;
051: }
052:
053: public void setStartY(int starty) {
054: m_starty = starty;
055: }
056:
057: public int getStartY() {
058: return m_starty;
059: }
060:
061: public void setEndX(int endx) {
062: m_endx = endx;
063: }
064:
065: public int getEndX() {
066: return m_endx;
067: }
068:
069: public void setEndY(int endy) {
070: m_endy = endy;
071: }
072:
073: public int getEndY() {
074: return m_endy;
075: }
076:
077: public void setBackgroundColor(int bgcolor) {
078: m_bgcolor = bgcolor;
079: }
080:
081: public int getBackgroundColor() {
082: return m_bgcolor;
083: }
084:
085: public void setOpcode(int opcode) {
086: m_opcode = opcode;
087: }
088:
089: public int getOpcode() {
090: return m_opcode;
091: }
092:
093: public Pen getPen() {
094: return m_pen;
095: }
096:
097: public void reset() {
098: m_mixmode = 0;
099: m_startx = 0;
100: m_starty = 0;
101: m_endx = 0;
102: m_endy = 0;
103: m_bgcolor = 0;
104: m_opcode = 0;
105: m_pen.reset();
106: }
107: }
|