@EngineService(injectDefaultToWorkflow=true, isCoreEngine=true) public class ImageAggregatorEngine extends AbstractAggregatorEngine
This engine is in charge to merge images into one final image.
| Modifier and Type | Field and Description | 
|---|---|
static String | 
AGGREGATION_NAME
The path name when images are aggregated. 
 | 
| Constructor and Description | 
|---|
ImageAggregatorEngine(Boolean aggregate,
                     DimensionPacker<ConvertibleNut> packer)
 Builds a new aggregator engine. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<ConvertibleNut> | 
aggregationParse(EngineRequest request)
 Do aggregation parsing. 
 | 
Dimension | 
getDimensionPack()
 Gets the dimension computed by the packer when defining a position for
 elements. 
 | 
List<NutType> | 
getNutTypes()
 Gets the all  
types supported by this engine. | 
static BufferedImage | 
makeTransparentImage(int width,
                    int height)
 Makes a transparent image of the given dimensions. 
 | 
Map<Region,ConvertibleNut> | 
pack(List<ConvertibleNut> nuts)
 Packs the given nuts (which embed images) in the smallest area. 
 | 
aggregationName, getEngineType, internalParse, workscallNextEngine, chain, getNext, getPrevious, parse, setNextpublic static final String AGGREGATION_NAME
@ConfigConstructor public ImageAggregatorEngine(@BooleanConfigParam(defaultValue=true,propertyKey="c.g.wuic.engine.aggregate") Boolean aggregate, @ObjectConfigParam(defaultValue="com.github.wuic.engine.core.BinPacker",propertyKey="c.g.wuic.engine.packerClassName") DimensionPacker<ConvertibleNut> packer)
Builds a new aggregator engine.
aggregate - if aggregation should be activated or notpublic List<ConvertibleNut> aggregationParse(EngineRequest request) throws WuicException
Do aggregation parsing.
aggregationParse in class AbstractAggregatorEnginerequest - the requestWuicException - if an error occurspublic static BufferedImage makeTransparentImage(int width, int height)
Makes a transparent image of the given dimensions.
width - the image widthheight - the image heightpublic List<NutType> getNutTypes()
 Gets the all types supported by this engine.
 
getNutTypes in class NodeEngineNutTypepublic Map<Region,ConvertibleNut> pack(List<ConvertibleNut> nuts) throws WuicException
Packs the given nuts (which embed images) in the smallest area.
nuts - the images to packWuicException - if one image could not be readpublic Dimension getDimensionPack()
Gets the dimension computed by the packer when defining a position for elements.
Copyright © 2012-2015. All Rights Reserved.