1626
|
1 |
"{ Package: 'stx:libview2' }"
|
1607
|
2 |
|
|
3 |
Object subclass:#MultiImage
|
|
4 |
instanceVariableNames:'images'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Graphics-Images'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MultiImage class methodsFor:'instance creation'!
|
|
12 |
|
|
13 |
images:imageCollection
|
|
14 |
^ self new images:imageCollection
|
|
15 |
! !
|
|
16 |
|
|
17 |
!MultiImage methodsFor:'accessing'!
|
|
18 |
|
1614
|
19 |
device
|
|
20 |
^ images first device
|
|
21 |
!
|
|
22 |
|
|
23 |
images
|
|
24 |
"return the value of the instance variable 'images' (automatically generated)"
|
|
25 |
|
|
26 |
^ images
|
|
27 |
!
|
|
28 |
|
1607
|
29 |
images:something
|
|
30 |
"set the value of the instance variable 'images' (automatically generated)"
|
|
31 |
|
|
32 |
images := something.
|
|
33 |
! !
|
|
34 |
|
|
35 |
!MultiImage methodsFor:'displaying'!
|
|
36 |
|
|
37 |
displayOn:aGC x:x y:y opaque:opaque
|
|
38 |
|doOpaque|
|
|
39 |
|
|
40 |
doOpaque := opaque.
|
|
41 |
images do:[:eachImage |
|
|
42 |
eachImage displayOn:aGC x:x y:y opaque:doOpaque.
|
|
43 |
doOpaque := false.
|
|
44 |
].
|
|
45 |
! !
|
|
46 |
|
1614
|
47 |
!MultiImage methodsFor:'misc'!
|
|
48 |
|
|
49 |
clearMaskedPixels
|
|
50 |
images := images do:[:eachImage | eachImage clearMaskedPixels].
|
|
51 |
^ self
|
|
52 |
!
|
|
53 |
|
|
54 |
onDevice:device
|
|
55 |
images := images collect:[:eachImage | eachImage onDevice:device].
|
|
56 |
^ self
|
|
57 |
! !
|
|
58 |
|
|
59 |
!MultiImage methodsFor:'queries'!
|
|
60 |
|
|
61 |
height
|
|
62 |
^ images inject:0 into:[:maxSoFar :eachImage | maxSoFar max:eachImage height].
|
|
63 |
!
|
|
64 |
|
|
65 |
isImageOrForm
|
|
66 |
^ true
|
|
67 |
!
|
|
68 |
|
|
69 |
width
|
|
70 |
^ images inject:0 into:[:maxSoFar :eachImage | maxSoFar max:eachImage width].
|
|
71 |
! !
|
|
72 |
|
1607
|
73 |
!MultiImage class methodsFor:'documentation'!
|
|
74 |
|
|
75 |
version
|
1626
|
76 |
^ '$Header: /cvs/stx/stx/libview2/MultiImage.st,v 1.4 2002-10-01 09:18:50 stefan Exp $'
|
1607
|
77 |
! !
|