Class SizeInfoProcessor<T>

java.lang.Object
software.coley.treemap.squaring.SizeInfoProcessor<T>
Type Parameters:
T - Data value type.

public class SizeInfoProcessor<T> extends Object
Processes some list of input instances, providing normalized sizes for all inputs in the wrapper type SizeInfo.
Author:
Matt Coley
  • Constructor Details

    • SizeInfoProcessor

      public SizeInfoProcessor(@Nonnull List<T> values, @Nonnull ToDoubleFunction<T> sizeFunction, double width, double height)
      Processes the given values, yielding size information wrappers.
      Parameters:
      values - Input data to process.
      sizeFunction - Function to convert T values to sizes.
      width - Target canvas width.
      height - Target canvas height.
  • Method Details

    • getSizeInfos

      @Nonnull public List<SizeInfo<T>> getSizeInfos()
      Returns:
      Wrappers of the original input values with additional size information.