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 PolyLineOrder implements Order {
024: private int m_x = 0;
025: private int m_y = 0;
026: private int m_flags = 0;
027: private int m_fgcolor = 0;
028: private int m_lines = 0;
029: private int m_opcode = 0;
030: private int m_datasize = 0;
031: byte[] m_data = new byte[256];
032:
033: public PolyLineOrder() {
034: }
035:
036: public void setX(int x) {
037: m_x = x;
038: }
039:
040: public int getX() {
041: return m_x;
042: }
043:
044: public void setY(int y) {
045: m_y = y;
046: }
047:
048: public int getY() {
049: return m_y;
050: }
051:
052: public void setFlags(int flags) {
053: m_flags = flags;
054: }
055:
056: public int getFlags() {
057: return m_flags;
058: }
059:
060: public void setForegroundColor(int fgcolor) {
061: m_fgcolor = fgcolor;
062: }
063:
064: public int getForegroundColor() {
065: return m_fgcolor;
066: }
067:
068: public void setLines(int lines) {
069: m_lines = lines;
070: }
071:
072: public int getLines() {
073: return m_lines;
074: }
075:
076: public void setDataSize(int datasize) {
077: m_datasize = datasize;
078: }
079:
080: public int getDataSize() {
081: return m_datasize;
082: }
083:
084: public void setData(byte[] data) {
085: m_data = data;
086: }
087:
088: public byte[] getData() {
089: return m_data;
090: }
091:
092: public void setOpcode(int opcode) {
093: m_opcode = opcode;
094: }
095:
096: public int getOpcode() {
097: return m_opcode;
098: }
099:
100: public void reset() {
101: m_x = 0;
102: m_y = 0;
103: m_flags = 0;
104: m_fgcolor = 0;
105: m_lines = 0;
106: m_opcode = 0;
107: m_datasize = 0;
108: m_data = new byte[256];
109: }
110: }
|