T
- a type of data associated to the dimensionspublic interface DimensionPacker<T>
A packer packs a set of dimensions (2d) in the smalled area.
Modifier and Type | Method and Description |
---|---|
void |
addElement(Dimension dimension,
T data)
Adds a new dimension with its associated data to the elements to be packed.
|
void |
clearElements()
Clears all the elements previously added.
|
Dimension |
getFilledArea()
Returns the area which contains all the filled zones.
|
Map<Region,T> |
getRegions()
Packs and returns the regions which result of the computation of the dimension
indicated thanks to the
addElement(Dimension, Object)
method. |
void addElement(Dimension dimension, T data)
Adds a new dimension with its associated data to the elements to be packed.
dimension
- the dimensiondata
- the data.void clearElements()
Clears all the elements previously added.
Map<Region,T> getRegions()
Packs and returns the regions which result of the computation of the dimension
indicated thanks to the addElement(Dimension, Object)
method.
Dimension getFilledArea()
Returns the area which contains all the filled zones.
Copyright © 2012-2015. All Rights Reserved.