Class ViewportAnimation<T extends Component>
java.lang.Object
com.spinyowl.legui.animation.Animation
com.spinyowl.legui.component.misc.animation.ViewportAnimation<T>
- Direct Known Subclasses:
ScrollablePanelAnimation,TextAreaScrollAnimation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleananimate(double delta) This method used to update animated object.protected voidupdateViewport(Component viewport, Component container, ScrollBar verticalScrollBar, ScrollBar horizontalScrollBar, double delta) protected abstract voidupdateViewport(T component, double delta) Methods inherited from class com.spinyowl.legui.animation.Animation
afterAnimation, beforeAnimation, isAnimationStarted, startAnimation, stopAnimation
-
Constructor Details
-
ViewportAnimation
-
-
Method Details
-
getComponentReference
-
animate
protected boolean animate(double delta) This method used to update animated object. Called by animator every frame. Removed from animator and stops when this method returns true.Returns true if animation is finished and could be removed from animator.
-
updateViewport
-
updateViewport
-