-
public interface DiffProcessor<Entry extends ChartEntry>Processes the difference between two collections of ChartEntry instances and generates intermediate collections for use in difference animations.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetEntries(List<List<Entry>> old, List<List<Entry>> new)Sets the initial and target collections of ChartEntry instances. abstract UnitsetEntries(List<List<Entry>> new)Reuses the current target collection of ChartEntry instances as the initial collection and sets a new target collection. abstract List<List<Entry>>progressDiff(Float progress)Creates an intermediate collection of ChartEntry instances for use in difference animations. abstract ClosedFloatingPointRange<Float>yRangeProgressDiff(Float progress)Creates an intermediate y-value range for use in difference animations. abstract ClosedFloatingPointRange<Float>stackedYRangeProgressDiff(Float progress)Creates an intermediate stacked y-value range for use in difference animations. -
-
Method Detail
-
setEntries
abstract Unit setEntries(List<List<Entry>> old, List<List<Entry>> new)
Sets the initial and target collections of ChartEntry instances.
- Parameters:
old- the initial collection.new- the target collection.
-
setEntries
abstract Unit setEntries(List<List<Entry>> new)
Reuses the current target collection of ChartEntry instances as the initial collection and sets a new target collection.
- Parameters:
new- the target collection.
-
progressDiff
abstract List<List<Entry>> progressDiff(Float progress)
Creates an intermediate collection of ChartEntry instances for use in difference animations.
- Parameters:
progress- the balance between the initial and target collections.
-
yRangeProgressDiff
abstract ClosedFloatingPointRange<Float> yRangeProgressDiff(Float progress)
Creates an intermediate y-value range for use in difference animations.
- Parameters:
progress- the balance between the initial and target range.
-
stackedYRangeProgressDiff
abstract ClosedFloatingPointRange<Float> stackedYRangeProgressDiff(Float progress)
Creates an intermediate stacked y-value range for use in difference animations.
- Parameters:
progress- the balance between the initial and target range.
-
-
-
-