umbrello API Documentation

ActorWidget Class Reference

This class is the graphical version of a UML Actor. A graphical version of a UML Actor. More...

#include <actorwidget.h>

Inheritance diagram for ActorWidget:

UMLWidget WidgetBase List of all members.

Public Member Functions

 ActorWidget (UMLView *view, UMLActor *o)
 Constructs an ActorWidget.
virtual ~ActorWidget ()
 destructor
void draw (QPainter &p, int offsetX, int offsetY)
 Overrides the standard paint event.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Saves the widget to the <actorwidget> XMI element.

Protected Member Functions

QSize calculateSize ()
 Overrides method from UMLWidget.

Detailed Description

This class is the graphical version of a UML Actor. A graphical version of a UML Actor.

An ActorWidget is created by a UMLView. An ActorWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to is destroyed, the ActorWidget will be automatically deleted.

If the Actor class that this ActorWidget is displaying is deleted, the UMLView will make sure that this instance is also deleted.

The ActorWidget class inherits from the UMLWidget class which adds most of the functionality to this class.

Author:
Paul Hensgen <phensgen@techie.com>
See also:
UMLWidget

UMLView Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 43 of file actorwidget.h.


Constructor & Destructor Documentation

ActorWidget::ActorWidget UMLView view,
UMLActor o
 

Constructs an ActorWidget.

Parameters:
view The parent of this ActorWidget.
o The Actor class this ActorWidget will display.

Definition at line 23 of file actorwidget.cpp.

References WidgetBase::setBaseType().

ActorWidget::~ActorWidget  )  [virtual]
 

destructor

Definition at line 27 of file actorwidget.cpp.


Member Function Documentation

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

Overrides the standard paint event.

Implements UMLWidget.

Definition at line 29 of file actorwidget.cpp.

References UMLWidget::drawSelected(), UMLWidget::getFontMetrics(), UMLWidget::getName(), UMLWidget::getUseFillColour(), and UMLWidget::setPen().

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

Saves the widget to the <actorwidget> XMI element.

Note: For loading from XMI, the inherited parent method is used.

Reimplemented from UMLWidget.

Definition at line 74 of file actorwidget.cpp.

QSize ActorWidget::calculateSize  )  [protected, virtual]
 

Overrides method from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 64 of file actorwidget.cpp.

References UMLWidget::getFontMetrics(), and UMLWidget::getName().


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:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003