public class SpriteMoviePainter extends java.lang.Object implements MoviePaintInstructor
Modifier and Type | Field and Description |
---|---|
(package private) int |
frameToPaint |
(package private) int |
lastPainted |
(package private) SpriteAnimation |
movie |
Constructor and Description |
---|
SpriteMoviePainter() |
SpriteMoviePainter(SpriteAnimation san) |
Modifier and Type | Method and Description |
---|---|
void |
advanceToFrame(int ifr) |
boolean |
antialias() |
java.lang.String |
getFrameDescription(int ifr) |
Box |
getLimitBox() |
int |
getNFrames() |
void |
instruct(Painter p) |
private void |
paintSprite(Painter p,
SpriteData sdat,
Placement pmt) |
void |
setFrame(int ifr) |
void |
setMovie(SpriteAnimation sa) |
SpriteAnimation movie
int lastPainted
int frameToPaint
public SpriteMoviePainter()
public SpriteMoviePainter(SpriteAnimation san)
public void setMovie(SpriteAnimation sa)
public void setFrame(int ifr)
setFrame
in interface MoviePaintInstructor
public void advanceToFrame(int ifr)
advanceToFrame
in interface MoviePaintInstructor
public int getNFrames()
getNFrames
in interface MoviePaintInstructor
public boolean antialias()
antialias
in interface PaintInstructor
public void instruct(Painter p)
instruct
in interface PaintInstructor
private void paintSprite(Painter p, SpriteData sdat, Placement pmt)
public Box getLimitBox()
getLimitBox
in interface PaintInstructor
public java.lang.String getFrameDescription(int ifr)
getFrameDescription
in interface MoviePaintInstructor
Copyright © 2013. All Rights Reserved.