umbrello API Documentation

UMLArtifact Class Reference

This class contains the non-graphical information required for a UML Artifact. Non-graphical information for a Artifact. More...

#include <artifact.h>

Inheritance diagram for UMLArtifact:

UMLCanvasObject UMLObject List of all members.

Public Types

enum  Draw_Type { defaultDraw, file, library, table }
 Artifacts can be drawn using one of several icons. More...

Public Member Functions

 UMLArtifact (const QString &Name="", Uml::IDType id=Uml::id_None)
 Sets up a Artifact.
virtual ~UMLArtifact ()
 Standard deconstructor.
virtual void init ()
 Initializes key variables of the class.
virtual UMLObjectclone () const
 Make a clone of this object.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Creates the UML:Artifact element including its operations, attributes and templates.
void setDrawAsType (Draw_Type type)
 sets m_drawAsType for which method to draw the artifact as
Draw_Type getDrawAsType ()
 returns the value of m_drawAsType

Protected Member Functions

bool load (QDomElement &element)
 Loads the UML:Artifact element including its operations, attributes and templates.

Detailed Description

This class contains the non-graphical information required for a UML Artifact. Non-graphical information for a Artifact.

This class inherits from UMLCanvasObject which contains most of the information.

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

Definition at line 30 of file artifact.h.


Member Enumeration Documentation

enum UMLArtifact::Draw_Type
 

Artifacts can be drawn using one of several icons.

Definition at line 37 of file artifact.h.


Constructor & Destructor Documentation

UMLArtifact::UMLArtifact const QString &  Name = "",
Uml::IDType  id = Uml::id_None
[explicit]
 

Sets up a Artifact.

Parameters:
Name The name of the Concept.
id The unique id of the Concept.

Definition at line 18 of file artifact.cpp.

References init().

Referenced by clone().

UMLArtifact::~UMLArtifact  )  [virtual]
 

Standard deconstructor.

Definition at line 23 of file artifact.cpp.


Member Function Documentation

void UMLArtifact::init  )  [virtual]
 

Initializes key variables of the class.

Reimplemented from UMLCanvasObject.

Definition at line 26 of file artifact.cpp.

Referenced by UMLArtifact().

UMLObject * UMLArtifact::clone  )  const [virtual]
 

Make a clone of this object.

Implements UMLObject.

Definition at line 31 of file artifact.cpp.

References clone(), UMLObject::copyInto(), and UMLArtifact().

Referenced by clone().

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

Creates the UML:Artifact element including its operations, attributes and templates.

Implements UMLObject.

Definition at line 37 of file artifact.cpp.

References UMLObject::save().

void UMLArtifact::setDrawAsType Draw_Type  type  ) 
 

sets m_drawAsType for which method to draw the artifact as

Definition at line 49 of file artifact.cpp.

UMLArtifact::Draw_Type UMLArtifact::getDrawAsType  ) 
 

returns the value of m_drawAsType

Definition at line 53 of file artifact.cpp.

Referenced by ArtifactWidget::calculateSize(), and ArtifactWidget::draw().

bool UMLArtifact::load QDomElement &  element  )  [protected, virtual]
 

Loads the UML:Artifact element including its operations, attributes and templates.

Reimplemented from UMLObject.

Definition at line 43 of file artifact.cpp.


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