public class RadialSort extends SortFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
RadialSort.Position |
| Constructor and Description |
|---|
RadialSort(long interObjectDelay,
boolean reversed,
RadialSort.Position position)
Establishes the delay between object animations and their starting position based on distance,
delay, and a value from the Position enum
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDistanceBetweenPoints(android.graphics.PointF left,
android.graphics.PointF right)
Find the double value of the distance between two points.
|
android.graphics.PointF |
getDistancePoint(android.view.ViewGroup parent,
java.util.List<android.view.View> children)
Get the point that's closest to the start point
|
java.util.List<SpruceTimedView> |
getViewListWithTimeOffsets(android.view.ViewGroup parent,
java.util.List<android.view.View> children)
Get a list of SpruceTimedView
|
public RadialSort(long interObjectDelay,
boolean reversed,
RadialSort.Position position)
interObjectDelay - delay between object animationsreversed - flag to indicate if the animation should be reversedposition - enum value of the position the animation should start frompublic android.graphics.PointF getDistancePoint(android.view.ViewGroup parent,
java.util.List<android.view.View> children)
children - List of views to sort by distancepublic java.util.List<SpruceTimedView> getViewListWithTimeOffsets(android.view.ViewGroup parent, java.util.List<android.view.View> children)
SortFunctiongetViewListWithTimeOffsets in class SortFunctionparent - ViewGroup parent of the collection of child viewschildren - List of views to be animatedpublic double getDistanceBetweenPoints(android.graphics.PointF left,
android.graphics.PointF right)
euclideanDistance method.left - PointFright - PointF