public class CalendarAnimationsManager extends Object
Constructor and Description |
---|
CalendarAnimationsManager(RadCalendarView owner)
Creates a new instance of the
CalendarAnimationsManager class. |
Modifier and Type | Method and Description |
---|---|
void |
animateToNextDate()
Animates the transition from the current date to the next one.
|
void |
animateToPreviousDate()
Animates the transition from the current date to the previous one.
|
boolean |
animationInProcess()
States whether an animation is currently being processed by the manager.
|
void |
beginAnimation(CalendarFragment monthFragment,
CalendarFragment yearFragment,
Rect monthCellBounds)
Deprecated.
|
double |
getFlingSpeed()
Gets the speed at which the calendar will scroll when fling gesture is invoked.
|
double |
getFriction()
Gets the friction to be applied when flinging.
|
int |
getMinFlingDistance()
Gets the minimum distance at which the calendar will scroll when fling is invoked.
|
double |
getSnapSpeed()
Gets the speed at which the fragments will snap when snapping is invoked.
|
void |
onInvalidate()
Handles the invalidation of the calendar view instance.
|
void |
reset()
Used to reset the manager and prevent any current animations.
|
void |
setFlingSpeed(double speed)
Sets the speed at which the calendar will scroll when fling gesture is invoked.
|
void |
setFriction(double friction)
Sets the friction to be applied when flinging.
|
void |
setMinFlingDistance(int minFlingDistance)
Sets the minimum distance at which the calendar will scroll when fling is invoked.
|
void |
setSnapSpeed(float speed)
Sets the speed at which the fragments will snap when snapping is invoked.
|
void |
setVelocity(double velocityX,
double velocityY)
Sets the current velocity for both the x and y axes.
|
public CalendarAnimationsManager(RadCalendarView owner)
CalendarAnimationsManager
class.owner
- the calendar instance owning this manager.public double getFriction()
public void setFriction(double friction)
friction
- the new friction.public double getFlingSpeed()
public void setFlingSpeed(double speed)
speed
- the new fling speed.public double getSnapSpeed()
public void setSnapSpeed(float speed)
speed
- the new snap speed.public int getMinFlingDistance()
public void setMinFlingDistance(int minFlingDistance)
minFlingDistance
- the new minimum fling distance.public void onInvalidate()
public void animateToNextDate()
public void animateToPreviousDate()
public void setVelocity(double velocityX, double velocityY)
velocityX
- the velocity along the x axis.velocityY
- the velocity along the y axis.public void reset()
public boolean animationInProcess()
true
if an animation is currently being processed, false
otherwise.public void beginAnimation(CalendarFragment monthFragment, CalendarFragment yearFragment, Rect monthCellBounds)
monthFragment
- the month fragment to be animated.yearFragment
- the year fragment to be animated.monthCellBounds
- the bounds of the month cell.