public class JavascriptSpriteProvider extends AbstractSpriteProvider
This class provides sprite throughout javascript language. The javascript path defines an array which associates each aggregated image name to its region in the final image.
In Javascript, an object is declared in variable starting with WUIC_SPRITE_ and ending with the heap ID. The heap ID is treated to be in upper case and with its characters which are invalid in javascript variable names replaced with an underscore.
Constructor and Description |
---|
JavascriptSpriteProvider() |
Modifier and Type | Method and Description |
---|---|
ConvertibleNut |
getSprite(String workflowId,
UrlProvider urlProvider,
String nutNameSuffix,
List<ConvertibleNut> originals)
|
addRegion, convertAllowedName, getImage, getRegions, init
public ConvertibleNut getSprite(String workflowId, UrlProvider urlProvider, String nutNameSuffix, List<ConvertibleNut> originals) throws IOException
Get the sprite of all the added images in a map associating
a NutType
as key a Nut
as value.
Each sprite is in a path associated to a supported
NutType
which helps
to determinate the language used to represent them.
workflowId
- the workflow IDurlProvider
- the UrlProvider
nutNameSuffix
- the prefix to append to the sprite nut nameoriginals
- the original nutsIOException
- if an I/O error occurs while aggregating imagesCopyright © 2012-2015. All Rights Reserved.