class UMLWidgetData

This class holds all the UMLWidget's Information All this information goes to a file or clipboard when a UMLWidget object is serialized With this class we are trying to achieve isolation between data and display layers. More...

Definition#include <./umlwidgetdata.h>
InheritsUml [public ]
Inherited byActivityWidgetData, ActorWidgetData, ConceptWidgetData, FloatingTextData, MessageWidgetData, NoteWidgetData, ObjectWidgetData, StateWidgetData, UseCaseWidgetData
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This class holds all the UMLWidget's Information All this information goes to a file or clipboard when a UMLWidget object is serialized With this class we are trying to achieve isolation between data and display layers. @author Gustavo Madrigal

 UMLWidgetData ()

UMLWidgetData

Constructor

 UMLWidgetData (UMLWidgetData &Other)

UMLWidgetData

Copy constructor

 ~UMLWidgetData ()

~UMLWidgetData

[virtual]

Deconstructor

UMLWidgetData &  operator= (const UMLWidgetData & Other)

operator=

[virtual]

Overload '=' operator

bool  operator== (const UMLWidgetData & Other)

operator==

[virtual]

Overload '==' operator

void  setType ( UMLWidget_Type Type)

setType

[virtual]

Write property of int m_Type.

UMLWidget_Type  getType ()

getType

[virtual]

Read property of int m_Type.

void  setX ( int X)

setX

[virtual]

Write property of int m_nX.

int  getX ()

getX

[virtual]

Read property of int m_nX.

void  setY ( int Y)

setY

[virtual]

Write property of int m_nY.

int  getY ()

getY

[virtual]

Read property of int m_nY.

int  getHeight ()

getHeight

[virtual]

Returns the height of widget. Only valid after load.

int  getWidth ()

getWidth

[virtual]

Returns the width of the widget. Only valid after load.

void  setWidth ( int width )

setWidth

[virtual]

Sets the width of the widget. Sets before save/copy.

void  setHeight ( int height )

setHeight

[virtual]

Sets the height of the widget. Sets before save/copy.

void  setId ( int Id)

setId

[virtual]

Write property of int m_Id.

int  getId ()

getId

[virtual]

Read property of int m_Id.

void  setUseFillColor ( bool UseFillcolor)

setUseFillColor

[virtual]

Write property of bool m_bUseFillColor.

bool  getUseFillColor ()

getUseFillColor

[virtual]

Read property of bool m_bUseFillColor.

bool  serialize (QDataStream *s, bool archive)

serialize

[virtual]

Saves/loads the class

uint  getNumAssoc ()

getNumAssoc

[virtual]

Read property of int m_nNumAssoc.

long  getClipSizeOf ()

getClipSizeOf

[virtual]

Returns the amount of bytes needed to serialize this object

void  print2cerr ()

print2cerr

[virtual]

Prints the data members to standard error

void  RemoveAssoc (AssociationWidget* pAssoc)

RemoveAssoc

Removes an already created association from the list of associations that include this UMLWidget

void  AddAssoc (AssociationWidget* pAssoc)

AddAssoc

Adds an already created association to the list of associations that include this UMLWidget

AssociationWidgetList &  getAssocList ()

getAssocList

Returns the list of associations connected to this widget.

void  setFont ( QFont font )

setFont

[virtual]

Sets the font the widget is to use.

QFont  getFont ()

getFont

[virtual]

Returns the font the widget is too use.

bool  saveToXMI ( QDomDocument & qDoc, QDomElement & qElement )

saveToXMI

[virtual]

bool  loadFromXMI ( QDomElement & qElement )

loadFromXMI

[virtual]

UMLWidget_Type m_Type

m_Type

[protected]

int m_nX

m_nX

[protected]

int m_nY

m_nY

[protected]

int m_nWidth

m_nWidth

[protected]

int m_nHeight

m_nHeight

[protected]

int m_nId

m_nId

[protected]

bool m_bUseFillColor

m_bUseFillColor

[protected]

AssociationWidgetList m_Assocs

m_Assocs

[protected]

QFont m_Font

m_Font

[protected]


Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54.