public class BlendImageAnimation extends Object implements ImageAnimation
| Modifier and Type | Class and Description |
|---|---|
static class |
BlendImageAnimation.Builder
Builder object.
|
| Constructor and Description |
|---|
BlendImageAnimation(BlendImageAnimation.Builder builder)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static BlendImageAnimation |
create(ImageAnimation bottom,
ImageAnimation top,
double blendStart,
double blendEnd)
Creates new instance.
|
RenderedImage |
getFrame(int index)
Returns the frame on the the specified index.
|
int |
getFrameDuration()
Returns duration of one frame in milliseconds.
|
int |
getFrameHeight()
Returns frame height.
|
int |
getFrameWidth()
Returns frame width.
|
int |
getNumFrames()
Returns total number of frames.
|
String |
toString() |
public BlendImageAnimation(BlendImageAnimation.Builder builder)
builder - builder objectpublic int getFrameWidth()
ImageAnimationgetFrameWidth in interface ImageAnimationpublic int getFrameHeight()
ImageAnimationgetFrameHeight in interface ImageAnimationpublic int getNumFrames()
ImageAnimationgetNumFrames in interface ImageAnimationpublic int getFrameDuration()
ImageAnimationgetFrameDuration in interface ImageAnimationpublic RenderedImage getFrame(int index)
ImageAnimationgetFrame in interface ImageAnimationindex - index of the frame, must be in interval [0, numFrames - 1]public static BlendImageAnimation create(ImageAnimation bottom, ImageAnimation top, double blendStart, double blendEnd)
bottom - bottom animationtop - top animationblendStart - start blending factor in interval [0, 1]blendEnd - end blending factor in interval [0, 1]Copyright © 2016. All rights reserved.