net.sf.freecol.common.resources
Class SZAResource

java.lang.Object
  extended by net.sf.freecol.common.resources.Resource
      extended by net.sf.freecol.common.resources.SZAResource

public class SZAResource
extends Resource

A Resource wrapping a SimpleZippedAnimation.

See Also:
Resource, SimpleZippedAnimation

Method Summary
 SimpleZippedAnimation getSimpleZippedAnimation()
          Gets the SimpleZippedAnimation represented by this resource.
 SimpleZippedAnimation getSimpleZippedAnimation(double scale)
          Returns the SimpleZippedAnimation using the specified scale.
 
Methods inherited from class net.sf.freecol.common.resources.Resource
getResourceLocator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSimpleZippedAnimation

public SimpleZippedAnimation getSimpleZippedAnimation()
Gets the SimpleZippedAnimation represented by this resource.

Returns:
The SimpleZippedAnimation in it's original size.

getSimpleZippedAnimation

public SimpleZippedAnimation getSimpleZippedAnimation(double scale)
Returns the SimpleZippedAnimation using the specified scale.

Parameters:
scale - The size of the requested animation (with 1 being normal size, 2 twice the size, 0.5 half the size etc). Rescaling will be performed unless using 1.
Returns:
The SimpleZippedAnimation.