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

CLineGraph Class Reference

#include <GraphLine.h>

Inheritance diagram for CLineGraph:

CGraphBase List of all members.

Public Member Functions

 CLineGraph ()
virtual ~CLineGraph ()
void AddItem (CGraphItem *pItem)
POSITION GetItemIterator () const
CGraphItemGetNextItem (POSITION &pos) const
int GetItemCount () const
void RemoveItem (CGraphItem *pItem)
void ClearItems ()
void ResetMaximum (BOOL bForce=TRUE)
virtual void CreateDefaults ()
virtual void Serialize (CArchive &ar)
virtual BOOL Update ()
virtual void Clear ()
virtual void Paint (CDC *pDC, CRect *pRect)

Public Attributes

BOOL m_bShowAxis
BOOL m_bShowGrid
BOOL m_bShowLegend
COLORREF m_crBack
COLORREF m_crGrid
DWORD m_nMinGridVert
DWORD m_nSpeed
DWORD m_nScale
DWORD m_nMaximum
DWORD m_nUpdates
DWORD m_tLastScale

Protected Member Functions

void PaintGrid (CDC *pDC, CRect *pRect)
void PaintLegend (CDC *pDC, CRect *pRect)

Protected Attributes

CPtrList m_pItems
CPen m_pGridPen

Constructor & Destructor Documentation

CLineGraph::CLineGraph  ) 
 

Definition at line 41 of file GraphLine.cpp.

References m_bShowAxis, m_bShowGrid, m_bShowLegend, m_crBack, m_crGrid, m_nMaximum, m_nMinGridVert, m_nScale, m_nSpeed, m_nUpdates, and m_tLastScale.

CLineGraph::~CLineGraph  )  [virtual]
 

Definition at line 57 of file GraphLine.cpp.

References ClearItems().


Member Function Documentation

void CLineGraph::AddItem CGraphItem pItem  ) 
 

Definition at line 65 of file GraphLine.cpp.

References m_pItems.

Referenced by CreateDefaults(), CGraphListDlg::OnGraphAdd(), CDownloadMonitorDlg::OnInitDialog(), CUploadTipCtrl::OnShow(), CNeighbourTipCtrl::OnShow(), and CDownloadTipCtrl::OnShow().

void CLineGraph::Clear  )  [virtual]
 

Reimplemented from CGraphBase.

Definition at line 137 of file GraphLine.cpp.

References GetItemIterator(), GetNextItem(), and m_nMaximum.

void CLineGraph::ClearItems  ) 
 

Definition at line 92 of file GraphLine.cpp.

References GetItemIterator(), GetNextItem(), and m_pItems.

Referenced by ~CLineGraph().

void CLineGraph::CreateDefaults  )  [virtual]
 

Reimplemented from CGraphBase.

Definition at line 104 of file GraphLine.cpp.

References AddItem(), GRC_TOTAL_BANDWIDTH_IN, and GRC_TOTAL_BANDWIDTH_OUT.

int CLineGraph::GetItemCount  )  const
 

Definition at line 80 of file GraphLine.cpp.

References m_pItems.

Referenced by Serialize().

POSITION CLineGraph::GetItemIterator  )  const
 

Definition at line 70 of file GraphLine.cpp.

References m_pItems.

Referenced by Clear(), ClearItems(), CGraphListDlg::OnInitDialog(), Paint(), PaintGrid(), PaintLegend(), ResetMaximum(), Serialize(), and Update().

CGraphItem * CLineGraph::GetNextItem POSITION &  pos  )  const
 

Definition at line 75 of file GraphLine.cpp.

References m_pItems.

Referenced by Clear(), ClearItems(), CGraphListDlg::OnInitDialog(), Paint(), PaintGrid(), PaintLegend(), ResetMaximum(), Serialize(), and Update().

void CLineGraph::Paint CDC *  pDC,
CRect *  pRect
[virtual]
 

Reimplemented from CGraphBase.

Definition at line 204 of file GraphLine.cpp.

References GetItemIterator(), GetNextItem(), CGraphItem::GetValueAt(), m_bShowGrid, m_bShowLegend, m_crBack, m_crGrid, CShareazaApp::m_gdiFont, CGraphItem::m_nLength, m_nMaximum, m_nScale, m_pGridPen, m_pItems, CGraphItem::m_pPen, CGraphItem::MakeGradient(), NULL, PaintGrid(), PaintLegend(), CGraphItem::SetHistory(), theApp, and TOP_MARGIN.

void CLineGraph::PaintGrid CDC *  pDC,
CRect *  pRect
[protected]
 

Definition at line 270 of file GraphLine.cpp.

References CGraphItem::GetItemDesc(), GetItemIterator(), GetNextItem(), m_bShowAxis, CGraphItem::m_nCode, m_nMaximum, m_nMinGridVert, m_nScale, GRAPHITEM::m_nUnits, m_nUpdates, m_pGridPen, MIN_GRID_SIZE_HORZ, NULL, Settings, CSettings::SmartVolume(), and TOP_MARGIN.

Referenced by Paint().

void CLineGraph::PaintLegend CDC *  pDC,
CRect *  pRect
[protected]
 

Definition at line 329 of file GraphLine.cpp.

References GetItemIterator(), GetNextItem(), CGraphItem::m_nColour, CGraphItem::m_sName, and NULL.

Referenced by Paint().

void CLineGraph::RemoveItem CGraphItem pItem  ) 
 

Definition at line 85 of file GraphLine.cpp.

References m_pItems, and NULL.

Referenced by CGraphListDlg::OnGraphRemove().

void CLineGraph::ResetMaximum BOOL  bForce = TRUE  ) 
 

Definition at line 187 of file GraphLine.cpp.

References GetItemIterator(), CGraphItem::GetMaximum(), GetNextItem(), and m_nMaximum.

Referenced by CGraphListDlg::OnGraphRemove(), CGraphListDlg::OnOK(), and Update().

void CLineGraph::Serialize CArchive &  ar  )  [virtual]
 

Reimplemented from CGraphBase.

Definition at line 150 of file GraphLine.cpp.

References GetItemCount(), GetItemIterator(), GetNextItem(), m_bShowAxis, m_bShowGrid, m_bShowLegend, m_nScale, m_nSpeed, m_pItems, and CGraphItem::Serialize().

BOOL CLineGraph::Update  )  [virtual]
 

Reimplemented from CGraphBase.

Definition at line 113 of file GraphLine.cpp.

References GetItemIterator(), GetNextItem(), m_nMaximum, m_nUpdates, m_pItems, m_tLastScale, ResetMaximum(), and CGraphItem::Update().


Member Data Documentation

BOOL CLineGraph::m_bShowAxis
 

Definition at line 41 of file GraphLine.h.

Referenced by CLineGraph(), CCoolTipCtrl::CreateLineGraph(), CGraphListDlg::OnInitDialog(), CDownloadMonitorDlg::OnInitDialog(), CGraphListDlg::OnOK(), CTrafficWnd::OnTrafficAxis(), CTrafficWnd::OnUpdateTrafficAxis(), PaintGrid(), and Serialize().

BOOL CLineGraph::m_bShowGrid
 

Definition at line 42 of file GraphLine.h.

Referenced by CLineGraph(), CGraphListDlg::OnInitDialog(), CGraphListDlg::OnOK(), CTrafficWnd::OnTrafficGrid(), CTrafficWnd::OnUpdateTrafficGrid(), Paint(), and Serialize().

BOOL CLineGraph::m_bShowLegend
 

Definition at line 43 of file GraphLine.h.

Referenced by CLineGraph(), CCoolTipCtrl::CreateLineGraph(), CGraphListDlg::OnInitDialog(), CDownloadMonitorDlg::OnInitDialog(), CGraphListDlg::OnOK(), CTrafficWnd::OnTrafficLegend(), CTrafficWnd::OnUpdateTrafficLegend(), Paint(), and Serialize().

COLORREF CLineGraph::m_crBack
 

Definition at line 44 of file GraphLine.h.

Referenced by CLineGraph(), CCoolTipCtrl::CreateLineGraph(), CDownloadMonitorDlg::OnInitDialog(), and Paint().

COLORREF CLineGraph::m_crGrid
 

Definition at line 45 of file GraphLine.h.

Referenced by CLineGraph(), CCoolTipCtrl::CreateLineGraph(), CDownloadMonitorDlg::OnInitDialog(), and Paint().

DWORD CLineGraph::m_nMaximum
 

Definition at line 50 of file GraphLine.h.

Referenced by Clear(), CLineGraph(), CDownloadMonitorDlg::OnTimer(), CUploadTipCtrl::OnTimer(), CNeighbourTipCtrl::OnTimer(), CDownloadTipCtrl::OnTimer(), Paint(), PaintGrid(), ResetMaximum(), and Update().

DWORD CLineGraph::m_nMinGridVert
 

Definition at line 46 of file GraphLine.h.

Referenced by CLineGraph(), CCoolTipCtrl::CreateLineGraph(), CDownloadMonitorDlg::OnInitDialog(), and PaintGrid().

DWORD CLineGraph::m_nScale
 

Definition at line 49 of file GraphLine.h.

Referenced by CLineGraph(), Paint(), PaintGrid(), and Serialize().

DWORD CLineGraph::m_nSpeed
 

Definition at line 48 of file GraphLine.h.

Referenced by CLineGraph(), CGraphListDlg::OnInitDialog(), CGraphListDlg::OnOK(), Serialize(), and CTrafficWnd::SetUpdateRate().

DWORD CLineGraph::m_nUpdates
 

Definition at line 51 of file GraphLine.h.

Referenced by CLineGraph(), CDownloadMonitorDlg::OnTimer(), CUploadTipCtrl::OnTimer(), CNeighbourTipCtrl::OnTimer(), CDownloadTipCtrl::OnTimer(), PaintGrid(), and Update().

CPen CLineGraph::m_pGridPen [protected]
 

Definition at line 55 of file GraphLine.h.

Referenced by Paint(), and PaintGrid().

CPtrList CLineGraph::m_pItems [protected]
 

Definition at line 54 of file GraphLine.h.

Referenced by AddItem(), ClearItems(), GetItemCount(), GetItemIterator(), GetNextItem(), Paint(), RemoveItem(), Serialize(), and Update().

DWORD CLineGraph::m_tLastScale
 

Definition at line 52 of file GraphLine.h.

Referenced by CLineGraph(), and Update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:09 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2