-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.entry.diff.DiffProcessor
public final class DefaultDiffProcessor implements DiffProcessor<ChartEntry>
The default implementation of DiffProcessor.
-
-
Constructor Summary
Constructors Constructor Description DefaultDiffProcessor()
-
Method Summary
Modifier and Type Method Description UnitsetEntries(List<List<ChartEntry>> old, List<List<ChartEntry>> new)Sets the initial and target collections of ChartEntry instances. UnitsetEntries(List<List<ChartEntry>> new)Reuses the current target collection of ChartEntry instances as the initial collection and sets a new target collection. List<List<ChartEntry>>progressDiff(Float progress)Creates an intermediate collection of ChartEntry instances for use in difference animations. ClosedFloatingPointRange<Float>yRangeProgressDiff(Float progress)Creates an intermediate y-value range for use in difference animations. ClosedFloatingPointRange<Float>stackedYRangeProgressDiff(Float progress)Creates an intermediate stacked y-value range for use in difference animations. -
-
Method Detail
-
setEntries
Unit setEntries(List<List<ChartEntry>> old, List<List<ChartEntry>> new)
Sets the initial and target collections of ChartEntry instances.
- Parameters:
old- the initial collection.new- the target collection.
-
setEntries
Unit setEntries(List<List<ChartEntry>> 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
List<List<ChartEntry>> 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
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
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.
-
-
-
-