-
Notifications
You must be signed in to change notification settings - Fork 0
/
GifImage.ctxt
27 lines (27 loc) · 2.01 KB
/
GifImage.ctxt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#BlueJ class context
comment0.target=GifImage
comment0.text=\n\ This\ class\ can\ be\ used\ to\ read\ animated\ gif\ image\ files\ and\ extract\ the\ individual\n\ images\ of\ the\ animation\ sequence.\n\ \n\ @author\ Michael\ Berry\n\ @author\ Neil\ Brown\n\ \n\ Copyright\ (c)\ 2011,2013,2014,2018,2021\n
comment1.params=file
comment1.target=GifImage(java.lang.String)
comment1.text=\n\ Set\ the\ image\ of\ the\ actor.\ If\ the\ image\ is\ a\ normal\ picture,\ it\ will\ be\ displayed\ as\ normal.\n\ If\ it's\ an\ animated\ GIF\ file\ then\ it\ will\ be\ displayed\ as\ an\ animated\ actor.\n
comment2.params=copyFrom
comment2.target=GifImage(GifImage)
comment2.text=\n\ Copy\ the\ given\ GifImage.\ \ This\ is\ faster,\ and\ uses\ less\ memory,\ than\ loading\ the\ same\n\ GIF\ multiple\ times.\ \ The\ current\ play\ state\ (position\ in\ the\ GIF,\ paused\ state)\ is\ copied\n\ from\ the\ given\ GifImage,\ but\ after\ that\ they\ can\ be\ independently\ played/paused.\n\ \n\ The\ images\ making\ up\ the\ GIF\ are\ shared\ between\ the\ two\ images,\ so\ any\ modifications\ to\n\ the\ images\ will\ be\ shared\ in\ both\ GIFs.\ \ You\ can\ call\ this\ constructor\ on\ the\ same\ source\n\ GIF\ multiple\ times.\n\ @param\ copyFrom\ The\ GifImage\ to\ copy\ from.\n
comment3.params=
comment3.target=java.util.List\ getImages()
comment3.text=\n\ Get\ all\ the\ images\ used\ in\ the\ animation\n\ @return\ a\ list\ of\ GreenfootImages,\ corresponding\ to\ each\ frame.\n
comment4.params=
comment4.target=void\ pause()
comment4.text=\n\ Pause\ the\ animation.\n
comment5.params=
comment5.target=void\ resume()
comment5.text=\n\ Resume\ the\ animation.\n
comment6.params=
comment6.target=boolean\ isRunning()
comment6.text=\n\ Determines\ whether\ the\ animation\ is\ running\n\ @return\ true\ if\ the\ animation\ is\ running,\ false\ otherwise\n
comment7.params=
comment7.target=greenfoot.GreenfootImage\ getCurrentImage()
comment8.params=file
comment8.target=void\ loadImages(java.lang.String)
comment8.text=\n\ Load\ the\ images\n
numComments=9