net.sf.freecol.common.io.sza
Class SimpleZippedAnimation.ImageAnimationEventImpl
java.lang.Object
net.sf.freecol.common.io.sza.SimpleZippedAnimation.ImageAnimationEventImpl
- All Implemented Interfaces:
- AnimationEvent, ImageAnimationEvent
- Enclosing class:
- SimpleZippedAnimation
private static final class SimpleZippedAnimation.ImageAnimationEventImpl
- extends java.lang.Object
- implements ImageAnimationEvent
|
Field Summary |
private static java.awt.Component |
_c
|
private int |
durationInMs
|
private java.awt.Image |
image
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_c
private static final java.awt.Component _c
image
private final java.awt.Image image
durationInMs
private final int durationInMs
SimpleZippedAnimation.ImageAnimationEventImpl
private SimpleZippedAnimation.ImageAnimationEventImpl(java.awt.Image image,
int durationInMs)
getImage
public java.awt.Image getImage()
- Description copied from interface:
ImageAnimationEvent
- Returns the image this event contains.
- Specified by:
getImage in interface ImageAnimationEvent
- Returns:
- The image to be displayed.
getDurationInMs
public int getDurationInMs()
- Description copied from interface:
ImageAnimationEvent
- Returns the duration the image should be displayed.
- Specified by:
getDurationInMs in interface ImageAnimationEvent
- Returns:
- The amount of milliseconds to display the
image.
createScaledVersion
private ImageAnimationEvent createScaledVersion(double scale)