45
44
~AssociationLine();
47
QPoint point( int pointIndex ) const;
48
bool setPoint( int pointIndex, const QPoint &point );
46
QPoint point(int pointIndex) const;
47
bool setPoint(int pointIndex, const QPoint &point);
49
48
QPoint startPoint() const;
50
49
QPoint endPoint() const;
52
bool insertPoint( int pointIndex, const QPoint &point );
53
bool removePoint( int pointIndex, const QPoint &point = QPoint(), unsigned short delta = 0 );
51
bool insertPoint(int pointIndex, const QPoint &point);
52
bool removePoint(int pointIndex, const QPoint &point = QPoint(), unsigned short delta = 0);
58
int closestPointIndex( const QPoint &position );
59
bool isPoint( int pointIndex, const QPoint &point, unsigned short delta = 0 );
61
bool setEndPoints( const QPoint &start, const QPoint &end );
63
bool hasPoints () const;
66
bool loadFromXMI( QDomElement & qElement );
67
void saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
57
int closestPointIndex(const QPoint &position);
58
bool isPoint(int pointIndex, const QPoint &point, unsigned short delta = 0);
60
bool setEndPoints(const QPoint &start, const QPoint &end);
62
bool hasPoints() const;
65
bool loadFromXMI(QDomElement & qElement);
66
void saveToXMI(QDomDocument & qDoc, QDomElement & qElement);
71
70
QColor lineColor();
72
void setLineColor( const QColor &color );
71
void setLineColor(const QColor &color);
75
void setLineWidth( uint width );
74
void setLineWidth(uint width);
78
77
* Returns the Association this class is linked to.
83
82
void setAssociation(AssociationWidget * association);
85
84
Uml::AssociationType getAssocType() const;
86
void setAssocType( Uml::AssociationType type );
88
bool operator==( const AssociationLine & rhs );
90
AssociationLine & operator=( const AssociationLine & rhs );
85
void setAssocType(Uml::AssociationType type);
87
bool operator==(const AssociationLine & rhs);
89
AssociationLine & operator=(const AssociationLine & rhs);
92
91
enum Region { ///< Enum to tell whether the line docks top/bottom or left/right.
93
92
TopBottom, LeftRight
96
void setDockRegion( Region region );
95
void setDockRegion(Region region);
98
void setSelected( bool select );
97
void setSelected(bool select);
105
void slotLineColorChanged( Uml::IDType viewID );
106
void slotLineWidthChanged( Uml::IDType viewID );
104
void slotLineColorChanged(Uml::IDType viewID);
105
void slotLineWidthChanged(Uml::IDType viewID);
115
114
class Circle : public UMLSceneEllipseItem
118
explicit Circle(UMLViewCanvas * canvas, int radius = 0);
117
explicit Circle(int radius = 0);
119
118
void setRadius(int radius);
120
119
int getRadius() const;
121
120
void setX(int x);