Package software.coley.treemap.squaring
Class SizeInfoProcessor<T>
java.lang.Object
software.coley.treemap.squaring.SizeInfoProcessor<T>
- Type Parameters:
T- Data value type.
Processes some list of input instances, providing normalized sizes for all inputs in the wrapper type
SizeInfo.- Author:
- Matt Coley
-
Constructor Summary
ConstructorsConstructorDescriptionSizeInfoProcessor(List<T> values, ToDoubleFunction<T> sizeFunction, double width, double height) Processes the given values, yieldingsize information wrappers. -
Method Summary
-
Constructor Details
-
SizeInfoProcessor
public SizeInfoProcessor(@Nonnull List<T> values, @Nonnull ToDoubleFunction<T> sizeFunction, double width, double height) Processes the given values, yieldingsize information wrappers.- Parameters:
values- Input data to process.sizeFunction- Function to convertTvalues to sizes.width- Target canvas width.height- Target canvas height.
-
-
Method Details
-
getSizeInfos
- Returns:
- Wrappers of the original input values with additional size information.
-