Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/Roassal-UML/RSAbstractUMLClassRenderer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ RSAbstractUMLClassRenderer >> applyVLayoutOn: shapes [
self applyLayoutOn: shapes
]

{ #category : 'accessing' }
RSAbstractUMLClassRenderer >> associationShape [
| shape |
shape := self simpleLineShape.
^ shape.
]

{ #category : 'accessing' }
RSAbstractUMLClassRenderer >> classBoxPadding [
^ padding ifNil: [ padding := self defaultClassBoxPadding ]
Expand Down Expand Up @@ -219,7 +226,15 @@ RSAbstractUMLClassRenderer >> renderAssociation: aCollection shape: aRSLine [
{ #category : 'public' }
RSAbstractUMLClassRenderer >> renderAssociations [
self renderAssociation: self modelDescriptor compositions shape: self compositionShape.
self renderAssociation: self modelDescriptor aggregations shape: self aggregationShape
self renderAssociation: self modelDescriptor aggregations shape: self aggregationShape.
self renderAssociation: self modelDescriptor associations shape: self associationShape.
]

{ #category : 'accessing' }
RSAbstractUMLClassRenderer >> simpleLineShape [
^ RSLine new
border: self border;
yourself
]

{ #category : 'hooks' }
Expand Down
14 changes: 13 additions & 1 deletion src/Roassal-UML/RSUMLClassDescriptor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Class {
'methodsLimit',
'aggregations',
'compositions',
'isAbstract'
'isAbstract',
'associations'
],
#category : 'Roassal-UML-Descriptor',
#package : 'Roassal-UML',
Expand All @@ -31,6 +32,17 @@ RSUMLClassDescriptor >> aggregations: aCollection [
aggregations := aCollection
]

{ #category : 'accessing' }
RSUMLClassDescriptor >> associations [
^ associations
]

{ #category : 'accessing' }
RSUMLClassDescriptor >> associations: anObject [

associations := anObject
]

{ #category : 'accessing' }
RSUMLClassDescriptor >> classname [
^ classname
Expand Down
Loading