PatBltOrder.java :  » Net » Remote-desktop » org » rdesktop » server » rdp » orders » Java Open Source

Java Open Source » Net » Remote desktop 
Remote desktop » org » rdesktop » server » rdp » orders » PatBltOrder.java
///////////////////////////////////////////////////////////////////////////////
//
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the GNU General Public License and GNU Library
//   General Public License as published by the Free Software Foundation;
//   either version 2, or (at your option) any later version.
//
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//   GNU General Public License and GNU Library General Public License
//   for more details.
//
//   You should have received a copy of the GNU General Public License
//   and GNU Library General Public License along with this program; if
//   not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
//   MA 02139, USA.
//
///////////////////////////////////////////////////////////////////////////////

package org.rdesktop.server.rdp.orders;

public class PatBltOrder extends DestBltOrder
{
    private int m_bgcolor = 0;
    private int m_fgcolor = 0;
    private Brush m_brush = null;

    public PatBltOrder()
    {
        super();
        m_brush = new Brush();
    }

    public void setBackgroundColor(int bgcolor)
    {
        m_bgcolor = bgcolor;
    }
    
    public int getBackgroundColor()
    {
        return m_bgcolor;
    }
    
    public void setForegroundColor(int fgcolor)
    {
        m_fgcolor = fgcolor;
    }

    public int getForegroundColor()
    {
        return m_fgcolor;
    }
    
    public Brush getBrush()
    {
       return m_brush;
    }

    public void reset()
    {
        super.reset();
        m_bgcolor = 0;
        m_fgcolor = 0;
        m_brush.reset();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.