umbrello API Documentation

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:

UMLWidget WidgetBase List of all members.

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

UseCaseWidget::UseCaseWidget UMLView view,
UMLUseCase o
 

Creates a UseCase widget.

Parameters:
view The parent of the widget.
o The UMLObject to represent.

Definition at line 22 of file usecasewidget.cpp.

References WidgetBase::setBaseType().

UseCaseWidget::~UseCaseWidget  )  [virtual]
 

destructor

Definition at line 28 of file usecasewidget.cpp.


Member Function Documentation

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

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().

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

Saves this UseCase to file.

Reimplemented from UMLWidget.

Definition at line 67 of file usecasewidget.cpp.

QSize UseCaseWidget::calculateSize  )  [protected, virtual]
 

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