playn.flash
Class FlashAssets

java.lang.Object
  extended by playn.core.AbstractAssets<Void>
      extended by playn.flash.FlashAssets
All Implemented Interfaces:
Assets

public class FlashAssets
extends AbstractAssets<Void>


Nested Class Summary
 
Nested classes/interfaces inherited from class playn.core.AbstractAssets
AbstractAssets.ImageReceiver<I>
 
Constructor Summary
FlashAssets(FlashPlatform platform)
           
 
Method Summary
 void addClientBundle(String regExp, AutoClientBundleWithLookup clientBundle)
           
protected  AsyncImage<Void> createAsyncImage(float width, float height)
           
protected  Image createErrorImage(Throwable cause, float width, float height)
           
protected  Image createStaticImage(Void iimpl, Scale scale)
           
 Image getImage(String path)
           
 Image getImageSync(String path)
           
 Image getRemoteImage(String url)
           
 Image getRemoteImage(String url, float width, float height)
           
 Sound getSound(String path)
           
 void getText(String path, Callback<String> callback)
           
 String getTextSync(String path)
           
protected  Image loadImage(String path, AbstractAssets.ImageReceiver<Void> recv)
           
 void setPathPrefix(String prefix)
           
 
Methods inherited from class playn.core.AbstractAssets
createErrorImage, createRemoteErrorImage, getPendingRequestCount, isDone, normalizePath, setErrorLater, setImageLater
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashAssets

public FlashAssets(FlashPlatform platform)
Method Detail

setPathPrefix

public void setPathPrefix(String prefix)

addClientBundle

public void addClientBundle(String regExp,
                            AutoClientBundleWithLookup clientBundle)

getImageSync

public Image getImageSync(String path)
Specified by:
getImageSync in interface Assets
Overrides:
getImageSync in class AbstractAssets<Void>

getImage

public Image getImage(String path)
Specified by:
getImage in interface Assets
Overrides:
getImage in class AbstractAssets<Void>

getRemoteImage

public Image getRemoteImage(String url)
Specified by:
getRemoteImage in interface Assets
Overrides:
getRemoteImage in class AbstractAssets<Void>

getRemoteImage

public Image getRemoteImage(String url,
                            float width,
                            float height)
Specified by:
getRemoteImage in interface Assets
Overrides:
getRemoteImage in class AbstractAssets<Void>

getSound

public Sound getSound(String path)

getTextSync

public String getTextSync(String path)
                   throws Exception
Throws:
Exception

getText

public void getText(String path,
                    Callback<String> callback)
Specified by:
getText in interface Assets
Overrides:
getText in class AbstractAssets<Void>

createErrorImage

protected Image createErrorImage(Throwable cause,
                                 float width,
                                 float height)
Overrides:
createErrorImage in class AbstractAssets<Void>

createStaticImage

protected Image createStaticImage(Void iimpl,
                                  Scale scale)
Specified by:
createStaticImage in class AbstractAssets<Void>

createAsyncImage

protected AsyncImage<Void> createAsyncImage(float width,
                                            float height)
Specified by:
createAsyncImage in class AbstractAssets<Void>

loadImage

protected Image loadImage(String path,
                          AbstractAssets.ImageReceiver<Void> recv)
Specified by:
loadImage in class AbstractAssets<Void>


Copyright © 2012. All Rights Reserved.