Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

GraphLine.h

Go to the documentation of this file.
00001 //
00002 // GraphLine.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_GRAPHLINE_H__90D244AB_D902_42D6_BD55_E8F34845EB1A__INCLUDED_)
00023 #define AFX_GRAPHLINE_H__90D244AB_D902_42D6_BD55_E8F34845EB1A__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "GraphBase.h"
00028 
00029 class CGraphItem;
00030 
00031 
00032 class CLineGraph : public CGraphBase
00033 {
00034 // Construction
00035 public:
00036         CLineGraph();
00037         virtual ~CLineGraph();
00038 
00039 // Attributes
00040 public:
00041         BOOL            m_bShowAxis;
00042         BOOL            m_bShowGrid;
00043         BOOL            m_bShowLegend;
00044         COLORREF        m_crBack;
00045         COLORREF        m_crGrid;
00046         DWORD           m_nMinGridVert;
00047 public:
00048         DWORD           m_nSpeed;
00049         DWORD           m_nScale;
00050         DWORD           m_nMaximum;
00051         DWORD           m_nUpdates;
00052         DWORD           m_tLastScale;
00053 protected:
00054         CPtrList        m_pItems;
00055         CPen            m_pGridPen;
00056 
00057 // Operations
00058 public:
00059         void            AddItem(CGraphItem* pItem);
00060         POSITION        GetItemIterator() const;
00061         CGraphItem*     GetNextItem(POSITION& pos) const;
00062         int                     GetItemCount() const;
00063         void            RemoveItem(CGraphItem* pItem);
00064         void            ClearItems();
00065         void            ResetMaximum(BOOL bForce = TRUE);
00066 public:
00067         virtual void    CreateDefaults();
00068         virtual void    Serialize(CArchive& ar);
00069         virtual BOOL    Update();
00070         virtual void    Clear();
00071         virtual void    Paint(CDC* pDC, CRect* pRect);
00072 protected:
00073         void    PaintGrid(CDC* pDC, CRect* pRect);
00074         void    PaintLegend(CDC* pDC, CRect* pRect);
00075 
00076 };
00077 
00078 #endif // !defined(AFX_GRAPHLINE_H__90D244AB_D902_42D6_BD55_E8F34845EB1A__INCLUDED_)

Generated on Thu Dec 15 10:39:43 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2