public class AnimationMetadataSection extends java.lang.Object implements IMetadataSection
Modifier and Type | Field and Description |
---|---|
private java.util.List<AnimationFrame> |
animationFrames |
private int |
frameHeight |
private int |
frameTime |
private int |
frameWidth |
private boolean |
interpolate |
Constructor and Description |
---|
AnimationMetadataSection(java.util.List<AnimationFrame> animationFramesIn,
int frameWidthIn,
int frameHeightIn,
int frameTimeIn,
boolean interpolateIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
frameHasTime(int frame) |
private AnimationFrame |
getAnimationFrame(int frame) |
int |
getFrameCount() |
int |
getFrameHeight() |
int |
getFrameIndex(int frame) |
java.util.Set<java.lang.Integer> |
getFrameIndexSet() |
int |
getFrameTime() |
int |
getFrameTimeSingle(int frame) |
int |
getFrameWidth() |
boolean |
isInterpolate() |
private final java.util.List<AnimationFrame> animationFrames
private final int frameWidth
private final int frameHeight
private final int frameTime
private final boolean interpolate
public AnimationMetadataSection(java.util.List<AnimationFrame> animationFramesIn, int frameWidthIn, int frameHeightIn, int frameTimeIn, boolean interpolateIn)
public int getFrameHeight()
public int getFrameWidth()
public int getFrameCount()
public int getFrameTime()
public boolean isInterpolate()
private AnimationFrame getAnimationFrame(int frame)
public int getFrameTimeSingle(int frame)
public boolean frameHasTime(int frame)
public int getFrameIndex(int frame)
public java.util.Set<java.lang.Integer> getFrameIndexSet()