umbrello API Documentation

NodeWidget Class Reference

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

#include <nodewidget.h>

Inheritance diagram for NodeWidget:

UMLWidget WidgetBase List of all members.

Public Member Functions

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

Protected Member Functions

QSize calculateSize ()
 Overrides method from UMLWidget.

Static Protected Attributes

static const int DEPTH = 30
 pixels on Z axis

Detailed Description

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

Most of the functionality will come from the UMLNode class.

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

Definition at line 28 of file nodewidget.h.


Constructor & Destructor Documentation

NodeWidget::NodeWidget UMLView view,
UMLNode n
 

Constructs a NodeWidget.

Parameters:
view The parent of this NodeWidget.
n The UMLNode this will be representing.

Definition at line 25 of file nodewidget.cpp.

References WidgetBase::setBaseType(), UMLWidget::setSize(), UMLWidget::setZ(), and UMLWidget::updateComponentSize().

NodeWidget::~NodeWidget  )  [virtual]
 

destructor

Definition at line 34 of file nodewidget.cpp.


Member Function Documentation

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

Overrides standard method.

Implements UMLWidget.

Definition at line 36 of file nodewidget.cpp.

References DEPTH, UMLWidget::drawSelected(), UMLWidget::getFont(), UMLWidget::getFontMetrics(), UMLWidget::getInstanceName(), UMLWidget::getName(), UMLObject::getStereotype(), and UMLWidget::setPen().

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

Saves to the <nodewidget> XMI element.

Note: For loading we use the method inherited from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 127 of file nodewidget.cpp.

QSize NodeWidget::calculateSize  )  [protected, virtual]
 

Overrides method from UMLWidget.

Reimplemented from UMLWidget.

Definition at line 98 of file nodewidget.cpp.

References UMLWidget::calculateSize(), DEPTH, UMLWidget::getFontMetrics(), UMLWidget::getInstanceName(), UMLObject::getName(), and UMLObject::getStereotype().


Member Data Documentation

const int NodeWidget::DEPTH = 30 [static, protected]
 

pixels on Z axis

Definition at line 61 of file nodewidget.h.

Referenced by calculateSize(), and draw().


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