umbrello API Documentation

ArtifactWidget Class Reference

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

#include <artifactwidget.h>

Inheritance diagram for ArtifactWidget:

UMLWidget WidgetBase List of all members.

Public Member Functions

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

Protected Member Functions

QSize calculateSize ()
 Overrides method from UMLWidget.

Detailed Description

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

Most of the functionality will come from the UMLArtifact class.

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

Definition at line 32 of file artifactwidget.h.


Constructor & Destructor Documentation

ArtifactWidget::ArtifactWidget UMLView view,
UMLArtifact a
 

Constructs a ArtifactWidget.

Parameters:
view The parent of this ArtifactWidget.
a The Artifact this widget will be representing.

Definition at line 25 of file artifactwidget.cpp.

References UMLWidget::init(), UMLWidget::setSize(), and UMLWidget::updateComponentSize().

ArtifactWidget::~ArtifactWidget  )  [virtual]
 

destructor

Definition at line 37 of file artifactwidget.cpp.


Member Function Documentation

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

Overrides standard method.

Implements UMLWidget.

Definition at line 182 of file artifactwidget.cpp.

References UMLArtifact::getDrawAsType(), and UMLWidget::setPen().

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

Saves the widget to the <artifactwidget> XMI element.

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

Reimplemented from UMLWidget.

Definition at line 254 of file artifactwidget.cpp.

QSize ArtifactWidget::calculateSize  )  [protected, virtual]
 

Overrides method from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 242 of file artifactwidget.cpp.

References UMLWidget::calculateSize(), and UMLArtifact::getDrawAsType().


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