home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BURKS 2
/
BURKS_AUG97.ISO
/
BURKS
/
LANGUAGE
/
SMALTALK
/
TEXTBOOK
/
AP15.ST
(
.txt
)
< prev
next >
Wrap
Text File
|
1997-04-22
|
430b
|
19 lines
'Smalltalk Textbook Appendix 15'!
!EngiDisplayModel methodsFor: 'bounds accessing'!
computeBounds
| bounds |
self canBeDisplayed
ifTrue: [bounds := self value bounds]
ifFalse: [bounds := self convertComposedText bounds].
bounds := bounds expandedBy: self expandedRectangle.
bounds := bounds merge: (Point zero corner: Point zero).
displayOrigin := Point zero - bounds origin.
^Point zero extent: bounds extent! !