UseCaseWidget Class Reference
This class is the graphical version of a UML UseCase. A graphical version of a UML UseCase. More...
#include <usecasewidget.h>
Inheritance diagram for UseCaseWidget:

Public Member Functions | |
| UseCaseWidget (UMLView *view, UMLUseCase *o) | |
| Creates a UseCase widget. | |
| virtual | ~UseCaseWidget () |
| destructor | |
| void | draw (QPainter &p, int offsetX, int offsetY) |
| Overrides the standard paint event. | |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Saves this UseCase to file. | |
Protected Member Functions | |
| QSize | calculateSize () |
| Overrides method from UMLWidget. | |
Detailed Description
This class is the graphical version of a UML UseCase. A graphical version of a UML UseCase.A UseCaseWidget is created by a UMLView. An UseCaseWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to, it will be automatically deleted.
If the UseCase class that this UseCaseWidget is displaying is deleted, the UMLView will make sure that this instance is also deleted.
The UseCaseWidget class inherits from the UMLWidget class which adds most of the functionality to this class.
- Author:
- Paul Hensgen <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 38 of file usecasewidget.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Creates a UseCase widget.
Definition at line 22 of file usecasewidget.cpp. References WidgetBase::setBaseType(). |
|
|
destructor
Definition at line 28 of file usecasewidget.cpp. |
Member Function Documentation
|
||||||||||||||||
|
Overrides the standard paint event.
Implements UMLWidget. Definition at line 30 of file usecasewidget.cpp. References UMLWidget::drawSelected(), UMLObject::getAbstract(), UMLWidget::getFont(), UMLWidget::getFontMetrics(), UMLWidget::getName(), and UMLWidget::setPen(). |
|
||||||||||||
|
Saves this UseCase to file.
Reimplemented from UMLWidget. Definition at line 67 of file usecasewidget.cpp. |
|
|
Overrides method from UMLWidget.
Reimplemented from UMLWidget. Definition at line 54 of file usecasewidget.cpp. References UMLObject::getAbstract(), UMLWidget::getFontMetrics(), and UMLWidget::getName(). |
The documentation for this class was generated from the following files:
