ImageSequence.st
author Claus Gittinger <cg@exept.de>
Sat, 12 May 2018 14:23:45 +0200
changeset 4088 bbf9b58f99c8
parent 3917 26886da33871
permissions -rw-r--r--
#FEATURE by cg class: MIMETypes class changed: #initializeFileInfoMappings class: MIMETypes::MIMEType added: #asMimeType #isCHeaderType #isCPPSourceType #isCSourceType
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG 
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
3917
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    11
"
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    12
"{ Package: 'stx:libview2' }"
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
3917
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    14
"{ NameSpace: Smalltalk }"
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
886
1f614850a058 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 631
diff changeset
    16
OrderedCollection subclass:#ImageSequence
887
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    17
	instanceVariableNames:'loop iterationCount'
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Graphics-Images'
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!ImageSequence class methodsFor:'documentation'!
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 1997 by eXept Software AG 
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	      All Rights Reserved
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
documentation
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    An ImageSequence represents a sequence of images as contained
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    in an animated gif or in a movie file.
3917
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
    45
    ImageSequence may be redefined to hold
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    additional attributes by specific movie representations.
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    [author:]
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
        Claus Gittinger
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    [see also:]
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
        ImageFrame
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
        Image
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
"
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
! !
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
887
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    57
!ImageSequence methodsFor:'accessing'!
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    58
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    59
iterationCount
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    60
    "return the iterationCount.
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    61
     The sequence is to be played that often."
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    62
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    63
    ^ iterationCount
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    64
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    65
    "Created: / 1.4.1998 / 14:53:43 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    66
    "Modified: / 1.4.1998 / 14:54:46 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    67
!
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    68
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    69
iterationCount:something
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    70
    "set the iterationCount.
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    71
     The sequence is to be played that often."
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    72
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    73
    iterationCount := something.
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    74
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    75
    "Created: / 1.4.1998 / 14:53:43 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    76
    "Modified: / 1.4.1998 / 14:54:53 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    77
!
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    78
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    79
loop
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    80
    "return the value of the loop flag;
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    81
     If true, this is considered an endless-loop sequence."
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    82
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    83
    ^ loop
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    84
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    85
    "Created: / 1.4.1998 / 14:53:47 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    86
    "Modified: / 1.4.1998 / 14:54:23 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    87
!
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    88
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    89
loop:aBoolean
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    90
    "set the value of the loop flag;
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    91
     If true, this is considered an endless-loop sequence."
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    92
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    93
    loop := aBoolean.
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    94
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    95
    "Created: / 1.4.1998 / 14:53:47 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    96
    "Modified: / 1.4.1998 / 14:54:15 / cg"
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    97
! !
5e198d0881fa *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 886
diff changeset
    98
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
!ImageSequence class methodsFor:'documentation'!
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
version
3917
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   102
    ^ '$Header$'
617
20a86b0e23d2 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
! !
3917
26886da33871 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 887
diff changeset
   104