BorderDecorator Class Reference

#include <BorderDecorator.h>

Inherits Decorator.

Collaboration diagram for BorderDecorator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BorderDecorator (VisualComponent *pvc, int borderWidth)
virtual void Draw ()

Static Public Attributes

static const int DEFAULT_BORDER_WIDTH = 1

Private Member Functions

void DrawBorder (int width_)

Private Attributes

int m_width


Detailed Description

Definition at line 6 of file BorderDecorator.h.


Constructor & Destructor Documentation

BorderDecorator::BorderDecorator ( VisualComponent pvc,
int  borderWidth 
) [inline]

Definition at line 11 of file BorderDecorator.h.


Member Function Documentation

virtual void BorderDecorator::Draw (  )  [inline, virtual]

Reimplemented from Decorator.

Definition at line 17 of file BorderDecorator.h.

References DrawBorder(), and m_width.

Here is the call graph for this function:

void BorderDecorator::DrawBorder ( int  width_  )  [inline, private]

Definition at line 24 of file BorderDecorator.h.

Referenced by Draw().

Here is the caller graph for this function:


Member Data Documentation

const int BorderDecorator::DEFAULT_BORDER_WIDTH = 1 [static]

Definition at line 9 of file BorderDecorator.h.

Referenced by main().

int BorderDecorator::m_width [private]

Definition at line 30 of file BorderDecorator.h.

Referenced by Draw().


The documentation for this class was generated from the following file:

Generated on Fri Mar 20 23:29:12 2009 for Decorator Design Pattern by  doxygen 1.5.8