Interface FramedSidebarAnimation<T>
- Type Parameters:
T- frame type
- All Superinterfaces:
SidebarAnimation<T>
- All Known Implementing Classes:
CollectionSidebarAnimation
A
SidebarAnimation with predetermined frames.-
Method Summary
Modifier and TypeMethodDescriptionintframes()voidswitchFrame(int frameIndex) Switches the current frame to specified indexMethods inherited from interface SidebarAnimation
currentFrame, nextFrame
-
Method Details
-
frames
-
currentFrameIndex
int currentFrameIndex()- Returns:
- the index of the current frame
-
switchFrame
void switchFrame(int frameIndex) Switches the current frame to specified index- Parameters:
frameIndex- the index of the new current frame- Throws:
ArrayIndexOutOfBoundsException- if frame is out of bounds
-