|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.ashape.animation.animations.AbstractAnimation
com.miginfocom.ashape.animation.animations.BasicStrokeAnimation
public class BasicStrokeAnimation
Animates over a BasicStroke.
Animates width, miterlimit, dashes and dash_phase.
The array that holds the dashes must be of equal length (or both null)
cap and join will be taken from sStroke unless for the last frame (perc == 1.0f) for which it will be taken from
eStroke.
| Constructor Summary | |
|---|---|
BasicStrokeAnimation(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke)
Constructor for no precalculated values. |
|
BasicStrokeAnimation(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke,
int cacheFrameCount)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
assertCompatible(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke)
Throws a IllegalArgumentException if the values don't have the same number of elements for the dash array. |
protected java.lang.Object |
createObject(float perc)
Returns a newly created object that complies to the same rules as AbstractAnimation.getObject(float). |
boolean |
equals(java.lang.Object o)
|
java.awt.BasicStroke |
getEndValue()
Returns value 2. |
java.awt.BasicStroke |
getStartValue()
Returns value 1. |
| Methods inherited from class com.miginfocom.ashape.animation.animations.AbstractAnimation |
|---|
createCache, createCacheImpl, getFrameCount, getObject |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicStrokeAnimation(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke)
n1 and n2 needs to be of same type.
Currently handles: Integer, Long, Float and Double.
sStroke - The first value. Not null.eStroke - The second value. Not null.AbstractAnimation
public BasicStrokeAnimation(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke,
int cacheFrameCount)
n1 and n2 needs to be of same type.
Currently handles: Integer, Long, Float and Double.
sStroke - The first value. Not null.eStroke - The second value. Not null.cacheFrameCount - The number of cached values. Use to create a "set" of values so that the AbstractAnimation.getObject(float)
won't have to make new once for every call.AbstractAnimation| Method Detail |
|---|
protected java.lang.Object createObject(float perc)
AbstractAnimationAbstractAnimation.getObject(float). For subclasses to implement.
createObject in class AbstractAnimationperc - 0.0 to 1.0 0.0 is the first Object/frame and 1.0 is the last.
AbstractAnimation.getObject(float).
protected void assertCompatible(java.awt.BasicStroke sStroke,
java.awt.BasicStroke eStroke)
IllegalArgumentException if the values don't have the same number of elements for the dash array.
sStroke - The start valueeStroke - The end valuepublic java.awt.BasicStroke getStartValue()
public java.awt.BasicStroke getEndValue()
public boolean equals(java.lang.Object o)
equals in class AbstractAnimation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||