617
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
|
|
12 |
|
|
13 |
"
|
|
14 |
|
1429
|
15 |
"{ Package: 'stx:libview2' }"
|
|
16 |
|
617
|
17 |
Object subclass:#ImageFrame
|
1429
|
18 |
instanceVariableNames:'imageHolder delay offset'
|
617
|
19 |
classVariableNames:''
|
|
20 |
poolDictionaries:''
|
|
21 |
category:'Graphics-Images'
|
|
22 |
!
|
|
23 |
|
|
24 |
!ImageFrame class methodsFor:'documentation'!
|
|
25 |
|
|
26 |
copyright
|
|
27 |
"
|
|
28 |
COPYRIGHT (c) 1997 by eXept Software AG
|
|
29 |
All Rights Reserved
|
|
30 |
|
|
31 |
This software is furnished under a license and may be used
|
|
32 |
only in accordance with the terms of that license and with the
|
|
33 |
inclusion of the above copyright notice. This software may not
|
|
34 |
be provided or otherwise made available to, or used by, any
|
|
35 |
other person. No title to or ownership of the software is
|
|
36 |
hereby transferred.
|
|
37 |
|
|
38 |
|
|
39 |
"
|
|
40 |
!
|
|
41 |
|
|
42 |
documentation
|
|
43 |
"
|
|
44 |
an ImageFrame represents a single image in a sequence
|
|
45 |
(such as an animated GIF or a movie).
|
|
46 |
This class only defines a delayTime (in ms) to the next
|
|
47 |
image; specialized subclasses may add additional attributes.
|
|
48 |
|
|
49 |
[author:]
|
|
50 |
Claus Gittinger
|
|
51 |
|
|
52 |
[see also:]
|
|
53 |
ImageSequence
|
|
54 |
Image
|
|
55 |
"
|
|
56 |
! !
|
|
57 |
|
|
58 |
!ImageFrame methodsFor:'accessing'!
|
|
59 |
|
|
60 |
delay
|
|
61 |
"return the value of the instance variable 'delay' (automatically generated)"
|
|
62 |
|
|
63 |
^ delay
|
|
64 |
|
|
65 |
"Created: 21.6.1997 / 13:05:47 / cg"
|
|
66 |
!
|
|
67 |
|
|
68 |
delay:something
|
|
69 |
"set the value of the instance variable 'delay' (automatically generated)"
|
|
70 |
|
|
71 |
delay := something.
|
|
72 |
|
|
73 |
"Created: 21.6.1997 / 13:05:47 / cg"
|
|
74 |
!
|
|
75 |
|
|
76 |
image
|
|
77 |
"return the image as represented by the imageFrame.
|
|
78 |
Here, the imageHolders value is returned"
|
|
79 |
|
|
80 |
^ imageHolder value
|
|
81 |
|
|
82 |
"Created: 21.6.1997 / 13:05:30 / cg"
|
|
83 |
!
|
|
84 |
|
885
|
85 |
image:anImage
|
|
86 |
"set the image as represented by the imageFrame."
|
|
87 |
|
|
88 |
imageHolder := anImage
|
|
89 |
|
|
90 |
"Created: / 21.6.1997 / 13:05:30 / cg"
|
|
91 |
"Modified: / 1.4.1998 / 14:25:33 / cg"
|
|
92 |
!
|
|
93 |
|
617
|
94 |
imageHolder
|
|
95 |
"return the value of the instance variable 'imageHolder' (automatically generated)"
|
|
96 |
|
|
97 |
^ imageHolder
|
|
98 |
|
|
99 |
"Created: 21.6.1997 / 13:05:53 / cg"
|
|
100 |
!
|
|
101 |
|
|
102 |
imageHolder:something
|
|
103 |
"set the value of the instance variable 'imageHolder' (automatically generated)"
|
|
104 |
|
|
105 |
imageHolder := something.
|
|
106 |
|
|
107 |
"Created: 21.6.1997 / 13:05:53 / cg"
|
1429
|
108 |
!
|
|
109 |
|
|
110 |
offset
|
|
111 |
"return the value of the instance variable 'offset' (automatically generated)"
|
|
112 |
|
|
113 |
^ offset
|
|
114 |
!
|
|
115 |
|
|
116 |
offset:something
|
|
117 |
"set the value of the instance variable 'offset' (automatically generated)"
|
|
118 |
|
|
119 |
offset := something.
|
617
|
120 |
! !
|
|
121 |
|
|
122 |
!ImageFrame class methodsFor:'documentation'!
|
|
123 |
|
|
124 |
version
|
1429
|
125 |
^ '$Header: /cvs/stx/stx/libview2/ImageFrame.st,v 1.3 2000-11-15 15:05:02 martin Exp $'
|
617
|
126 |
! !
|