umbrello API Documentation

ComponentWidget Class Reference

Defines a graphical version of the Component. A graphical version of a Component. More...

#include <componentwidget.h>

Inheritance diagram for ComponentWidget:

UMLWidget WidgetBase List of all members.

Public Member Functions

 ComponentWidget (UMLView *view, UMLComponent *c)
 Constructs a ComponentWidget.
virtual ~ComponentWidget ()
 destructor
void draw (QPainter &p, int offsetX, int offsetY)
 Overrides standard method.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Saves to the <componentwidget> XMI element.

Protected Member Functions

QSize calculateSize ()
 Overrides method from UMLWidget.

Detailed Description

Defines a graphical version of the Component. A graphical version of a Component.

Most of the functionality will come from the UMLComponent class.

Author:
Jonathan Riddell
See also:
UMLWidget Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 30 of file componentwidget.h.


Constructor & Destructor Documentation

ComponentWidget::ComponentWidget UMLView view,
UMLComponent c
 

Constructs a ComponentWidget.

Parameters:
view The parent of this ComponentWidget.
c The UMLComponent this will be representing.

Definition at line 24 of file componentwidget.cpp.

References UMLWidget::init().

ComponentWidget::~ComponentWidget  )  [virtual]
 

destructor

Definition at line 46 of file componentwidget.cpp.


Member Function Documentation

void ComponentWidget::draw QPainter &  p,
int  offsetX,
int  offsetY
[virtual]
 

Overrides standard method.

Implements UMLWidget.

Definition at line 48 of file componentwidget.cpp.

References UMLWidget::drawSelected(), UMLComponent::getExecutable(), UMLWidget::getFont(), UMLWidget::getFontMetrics(), UMLWidget::getInstanceName(), UMLWidget::getName(), UMLObject::getStereotype(), and UMLWidget::setPen().

void ComponentWidget::saveToXMI QDomDocument &  qDoc,
QDomElement &  qElement
[virtual]
 

Saves to the <componentwidget> XMI element.

Reimplemented from UMLWidget.

Definition at line 136 of file componentwidget.cpp.

QSize ComponentWidget::calculateSize  )  [protected, virtual]
 

Overrides method from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 108 of file componentwidget.cpp.

References UMLWidget::getFontMetrics(), UMLWidget::getInstanceName(), UMLObject::getName(), and UMLObject::getStereotype().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:04 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003