Class SubclassableAdditiveViewAnimator<T extends SubclassableAdditiveViewAnimator>
- java.lang.Object
-
- at.wirecube.additiveanimations.additive_animator.sequence.AnimationSequence
-
- at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator<T,View>
-
- at.wirecube.additiveanimations.additive_animator.SubclassableAdditiveViewAnimator<T>
-
- Direct Known Subclasses:
AdditiveAnimator
public abstract class SubclassableAdditiveViewAnimator<T extends SubclassableAdditiveViewAnimator> extends BaseAdditiveAnimator<T,View>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanmSkipRequestLayoutprotected booleanmWithLayer-
Fields inherited from class at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator
mAnimationAccumulator, mAnimatorGroup, mCurrentCustomInterpolator, mCurrentTarget, mParent, mRunningAnimationsManager, sequenceDelay, staggerDelay
-
-
Constructor Summary
Constructors Constructor Description SubclassableAdditiveViewAnimator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Talpha(float alpha)TalphaBy(float alphaBy)TbackgroundColor(int color)TbottomLeftMarginAlongPath(Path path)TbottomMargin(int bottomMargin)TbottomMarginBy(int bottomMarginBy)TbottomPadding(int bottomPadding)TbottomPaddingBy(int bottomPaddingBy)TbottomRightMarginAlongPath(Path path)TcenterX(float centerX)TcenterY(float centerY)Televation(int elevation)TelevationBy(int elevationBy)TfadeVisibility(int visibility)FloatgetCurrentPropertyValue(String propertyName)Returns the actual value of the animation target with the given name.protected static FloatgetQueuedPropertyValue(String propertyName, View v)The distinction between this andgetTargetPropertyValue(String, View)(String)} is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.static floatgetTargetPropertyValue(Property<View,Float> property, View v)The distinction between this andBaseAdditiveAnimator.getQueuedPropertyValue(String)is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.static FloatgetTargetPropertyValue(String propertyName, View v)The distinction between this andBaseAdditiveAnimator.getQueuedPropertyValue(String)is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.Theight(int height)TheightBy(int heightBy)ThorizontalMargin(int horizontalMargin)ThorizontalMarginBy(int horizontalMarginBy)ThorizontalPadding(int horizontalPadding)ThorizontalPaddingBy(int horizontalPaddingBy)TleftMargin(int leftMargin)TleftMarginBy(int leftMarginBy)TleftPadding(int leftPadding)TleftPaddingBy(int leftPaddingBy)Tmargin(int margin)TmarginBy(int marginBy)voidonApplyChanges()This method will be called when the current frame has been calculated.Tpadding(int padding)TpaddingBy(int paddingBy)TrequestLayout()Manually turns on requesting layout after each frame.TrightMargin(int rightMargin)TrightMarginBy(int rightMarginBy)TrightPadding(int rightPadding)TrightPaddingBy(int rightPaddingBy)Trotation(float rotation)TrotationBy(float rotationBy)TrotationX(float rotationX)TrotationXBy(float rotationXBy)TrotationY(float rotationY)TrotationYBy(float rotationYBy)Tscale(float scale)TscaleBy(float scalesBy)TscaleX(float scaleX)TscaleXBy(float scaleXBy)TscaleY(float scaleY)TscaleYBy(float scaleYBy)Tscroll(int x, int y)TscrollBy(int xBy, int yBy)TscrollX(int scrollX)TscrollXBy(int scrollXBy)TscrollY(int scrollY)TscrollYBy(int scrollYBy)protected TsetParent(T other)Copies all relevant attributes, including (ONLY) current target from `other` to self.Tsize(int size)TsizeBy(int sizeBy)TskipRequestLayout()Deprecated.Ttarget(View view)Sets the current animation target.TtopLeftMarginAlongPath(Path path)TtopMargin(int topMargin)TtopMarginBy(int topMarginBy)TtopPadding(int topPadding)TtopPaddingBy(int topPaddingBy)TtopRightMarginAlongPath(Path path)TtranslationX(float translationX)TtranslationXBy(float translationXBy)TtranslationXYAlongPath(Path path)TtranslationXYRotationAlongPath(Path path)TtranslationY(float translationY)TtranslationYBy(float translationYBy)TtranslationZ(float translationZ)TtranslationZBy(float translationZBy)TverticalMargin(int verticalMargin)TverticalMarginBy(int verticalMarginBy)TverticalPadding(int verticalPadding)TverticalPaddingBy(int verticalPaddingBy)Tvisibility(AnimationState<View> animation)Twidth(int width)TwidthBy(int widthBy)TwithLayer()Activates hardware layers.TwithoutLayer()Deactivates hardware layers for the current view and all subsequently added ones.Tx(float x)TxBy(float xBy)TxyAlongPath(Path path)TxyRotationAlongPath(Path path)Ty(float y)TyBy(float yBy)Tz(float z)TzBy(float zBy)-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator
action, addEndAction, addListener, addPauseListener, addStartAction, addTarget, addUpdateListener, animate, animate, animate, animate, animate, animatePropertiesAlongPath, animateProperty, animateProperty, animatePropertyBy, apply, apply, applyCustomProperties, cancelAnimation, cancelAnimation, cancelAnimation, cancelAnimationsForObject, cancelAnimationsForObjects, cancelAnimationsInCollection, createAnimation, createAnimation, createAnimation, createChildWithDelayAfterParentStart, createChildWithRawDelay, getCurrentTarget, getQueuedPropertyValue, getRunningAnimationsManager, getTargetPropertyValue, getTargetPropertyValue, getTotalDurationInSequence, getValueAnimator, initValueAnimatorIfNeeded, newInstance, property, property, property, runIfParentIsInSameAnimationGroup, self, setDefaultDuration, setDefaultInterpolator, setDelayInSequence, setDuration, setInterpolator, setRepeatCount, setRepeatMode, setsDefaultInterpolator, setStartDelay, start, state, switchDuration, switchInterpolator, switchToDefaultInterpolator, targets, targets, targets, then, thenBeforeEnd, thenDelayAfterEnd, thenWithDelay
-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.sequence.AnimationSequence
playSequentially, playSequentially, playTogether, playTogether, playWithDelayBetweenAnimations
-
-
-
-
Method Detail
-
getTargetPropertyValue
public static float getTargetPropertyValue(Property<View,Float> property, View v)
The distinction between this andBaseAdditiveAnimator.getQueuedPropertyValue(String)is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.- Returns:
- The value of the last started animation target for this property.
-
getTargetPropertyValue
public static Float getTargetPropertyValue(String propertyName, View v)
The distinction between this andBaseAdditiveAnimator.getQueuedPropertyValue(String)is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.- Returns:
- The value of the last started animation target for this property.
-
getQueuedPropertyValue
protected static Float getQueuedPropertyValue(String propertyName, View v)
The distinction between this andgetTargetPropertyValue(String, View)(String)} is important when chaining animations: When an animation has been then-chained, it is not counted as started, but queued until start() is called.- Returns:
- The last queued animation target for this property during then()-building, even before the animation has been started.
-
getCurrentPropertyValue
public Float getCurrentPropertyValue(String propertyName)
Description copied from class:BaseAdditiveAnimatorReturns the actual value of the animation target with the given name.- Specified by:
getCurrentPropertyValuein classBaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>
-
target
public T target(View view)
Description copied from class:BaseAdditiveAnimatorSets the current animation target. You can change the animation target multiple times before callingBaseAdditiveAnimator.start():new AdditiveAnimator().target(view1).x(100).target(view2).y(200).start()If you want to animate the same property of multiple views, useBaseAdditiveAnimator.targets(Object[])orBaseAdditiveAnimator.targets(List, long)- Overrides:
targetin classBaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>
-
setParent
protected T setParent(T other)
Description copied from class:BaseAdditiveAnimatorCopies all relevant attributes, including (ONLY) current target from `other` to self. Override if you have custom properties that need to be copied.- Overrides:
setParentin classBaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>
-
onApplyChanges
public void onApplyChanges()
Description copied from class:BaseAdditiveAnimatorThis method will be called when the current frame has been calculated. Override this method in a subclass to trigger a layout of your view/canvas/custom object.- Specified by:
onApplyChangesin classBaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>
-
skipRequestLayout
@Deprecated public T skipRequestLayout()
Deprecated.Turns off requesting layout after each frame. Since this is the default value, you should never have to call this method.
-
requestLayout
public T requestLayout()
Manually turns on requesting layout after each frame. Calling this method is only necessary if you are animating layout properties via custom builder methods.
-
withLayer
public T withLayer()
Activates hardware layers. This property will be applied to all subsequent target views and child animators (created by `then...()` methods) as well. Note that
-
withoutLayer
public T withoutLayer()
Deactivates hardware layers for the current view and all subsequently added ones.
-
fadeVisibility
public T fadeVisibility(int visibility)
-
visibility
public T visibility(AnimationState<View> animation)
-
backgroundColor
public T backgroundColor(int color)
-
scaleX
public T scaleX(float scaleX)
-
scaleXBy
public T scaleXBy(float scaleXBy)
-
scaleY
public T scaleY(float scaleY)
-
scaleYBy
public T scaleYBy(float scaleYBy)
-
scale
public T scale(float scale)
-
scaleBy
public T scaleBy(float scalesBy)
-
translationX
public T translationX(float translationX)
-
translationXBy
public T translationXBy(float translationXBy)
-
translationY
public T translationY(float translationY)
-
translationYBy
public T translationYBy(float translationYBy)
-
translationZ
public T translationZ(float translationZ)
-
translationZBy
public T translationZBy(float translationZBy)
-
alpha
public T alpha(float alpha)
-
alphaBy
public T alphaBy(float alphaBy)
-
rotation
public T rotation(float rotation)
-
rotationBy
public T rotationBy(float rotationBy)
-
rotationX
public T rotationX(float rotationX)
-
rotationXBy
public T rotationXBy(float rotationXBy)
-
rotationY
public T rotationY(float rotationY)
-
rotationYBy
public T rotationYBy(float rotationYBy)
-
x
public T x(float x)
-
xBy
public T xBy(float xBy)
-
centerX
public T centerX(float centerX)
-
y
public T y(float y)
-
yBy
public T yBy(float yBy)
-
centerY
public T centerY(float centerY)
-
z
public T z(float z)
-
zBy
public T zBy(float zBy)
-
leftMargin
public T leftMargin(int leftMargin)
-
leftMarginBy
public T leftMarginBy(int leftMarginBy)
-
topMargin
public T topMargin(int topMargin)
-
topMarginBy
public T topMarginBy(int topMarginBy)
-
rightMargin
public T rightMargin(int rightMargin)
-
rightMarginBy
public T rightMarginBy(int rightMarginBy)
-
bottomMargin
public T bottomMargin(int bottomMargin)
-
bottomMarginBy
public T bottomMarginBy(int bottomMarginBy)
-
horizontalMargin
public T horizontalMargin(int horizontalMargin)
-
horizontalMarginBy
public T horizontalMarginBy(int horizontalMarginBy)
-
verticalMargin
public T verticalMargin(int verticalMargin)
-
verticalMarginBy
public T verticalMarginBy(int verticalMarginBy)
-
margin
public T margin(int margin)
-
marginBy
public T marginBy(int marginBy)
-
width
public T width(int width)
-
widthBy
public T widthBy(int widthBy)
-
height
public T height(int height)
-
heightBy
public T heightBy(int heightBy)
-
size
public T size(int size)
-
sizeBy
public T sizeBy(int sizeBy)
-
leftPadding
public T leftPadding(int leftPadding)
-
leftPaddingBy
public T leftPaddingBy(int leftPaddingBy)
-
topPadding
public T topPadding(int topPadding)
-
topPaddingBy
public T topPaddingBy(int topPaddingBy)
-
rightPadding
public T rightPadding(int rightPadding)
-
rightPaddingBy
public T rightPaddingBy(int rightPaddingBy)
-
bottomPadding
public T bottomPadding(int bottomPadding)
-
bottomPaddingBy
public T bottomPaddingBy(int bottomPaddingBy)
-
horizontalPadding
public T horizontalPadding(int horizontalPadding)
-
horizontalPaddingBy
public T horizontalPaddingBy(int horizontalPaddingBy)
-
verticalPadding
public T verticalPadding(int verticalPadding)
-
verticalPaddingBy
public T verticalPaddingBy(int verticalPaddingBy)
-
padding
public T padding(int padding)
-
paddingBy
public T paddingBy(int paddingBy)
-
scrollX
public T scrollX(int scrollX)
-
scrollXBy
public T scrollXBy(int scrollXBy)
-
scrollY
public T scrollY(int scrollY)
-
scrollYBy
public T scrollYBy(int scrollYBy)
-
scroll
public T scroll(int x, int y)
-
scrollBy
public T scrollBy(int xBy, int yBy)
-
elevation
public T elevation(int elevation)
-
elevationBy
public T elevationBy(int elevationBy)
-
-