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:

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
|
||||||||||||
|
Constructs an ActorWidget.
Definition at line 23 of file actorwidget.cpp. References WidgetBase::setBaseType(). |
|
|
destructor
Definition at line 27 of file actorwidget.cpp. |
Member Function Documentation
|
||||||||||||||||
|
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(). |
|
||||||||||||
|
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. |
|
|
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:
