net.sf.freecol.common.io.sza
Class SimpleZippedAnimation.ImageAnimationEventImpl

java.lang.Object
  extended by 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
           
 
Constructor Summary
private SimpleZippedAnimation.ImageAnimationEventImpl(java.awt.Image image, int durationInMs)
           
 
Method Summary
private  ImageAnimationEvent createScaledVersion(double scale)
           
 int getDurationInMs()
          Returns the duration the image should be displayed.
 java.awt.Image getImage()
          Returns the image this event contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_c

private static final java.awt.Component _c

image

private final java.awt.Image image

durationInMs

private final int durationInMs
Constructor Detail

SimpleZippedAnimation.ImageAnimationEventImpl

private SimpleZippedAnimation.ImageAnimationEventImpl(java.awt.Image image,
                                                      int durationInMs)
Method Detail

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)