Package limn.animation
Class ImageAnimation.Loop
java.lang.Object
limn.animation.ImageAnimation.Loop
- Enclosing class:
ImageAnimation
How many turns an animation makes, and which way.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImageAnimation.LoopForward and then back, without end.static final ImageAnimation.LoopAs many turns as the image asks for: what a file says of itself.static final ImageAnimation.LoopWithout end.static final ImageAnimation.LoopOne turn, ending on the last frame. -
Method Summary
-
Field Details
-
FILE
As many turns as the image asks for: what a file says of itself. -
FOREVER
Without end. -
ONCE
One turn, ending on the last frame. -
BOUNCE
Forward and then back, without end.
-
-
Method Details
-
times
- Parameters:
turns- how many turns, above 0- Returns:
- that many turns, ending on the last frame
- Throws:
IllegalArgumentException- ifturnsis not above 0
-
turns
public int turns()- Returns:
- how many turns: above 0 for a count, 0 for without end, and -1 for
FILE, whose count is the image's own
-
bounces
public boolean bounces()- Returns:
- whether it plays forward and then back:
BOUNCE
-
equals
Two loops are equal when they make the same turns the same way. -
hashCode
public int hashCode() -
toString
-