|
|||||||||
| 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.AbsRectAnimation
public class AbsRectAnimation
An animation that animates between two AbsRect objects. They need to be per argument compatible. I.e
if the width is an Integer in the first AbsRect it needs to be that in the second as well.
The reason for this is that we don't have the relative size values that has to be used to convert relative values to absolute.
| Constructor Summary | |
|---|---|
AbsRectAnimation(AbsRect sRect,
AbsRect eRect)
Constructor without cached objects. |
|
AbsRectAnimation(AbsRect sRect,
AbsRect eRect,
int cacheFrameCount)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
checkRects(AbsRect r1,
AbsRect r2)
Check so that x, y, w, h of the argument rectangles are of same type. |
java.lang.Object |
createObject(float d)
Returns a newly created object that complies to the same rules as AbstractAnimation.getObject(float). |
boolean |
equals(java.lang.Object o)
|
PlaceRect |
getEndRect()
Returns the end AbsRect. |
protected java.awt.Insets |
getInsets(java.awt.Insets i1,
java.awt.Insets i2,
float d)
Returns an Insets object that lays distance d (0..1) between both arguments. |
PlaceRect |
getStartRect()
Returns the start AbsRect. |
| 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 AbsRectAnimation(AbsRect sRect,
AbsRect eRect)
sRect - The source, or start, rectangle.eRect - The destination, or end, rectangle.
public AbsRectAnimation(AbsRect sRect,
AbsRect eRect,
int cacheFrameCount)
sRect - The source, or start, rectangle.eRect - The destination, or end, rectangle.cacheFrameCount - How many frames that should be cached, and used. 0 means "no caching".| Method Detail |
|---|
public java.lang.Object createObject(float d)
AbstractAnimationAbstractAnimation.getObject(float). For subclasses to implement.
createObject in class AbstractAnimationd - 0.0 to 1.0 0.0 is the first Object/frame and 1.0 is the last.
AbstractAnimation.getObject(float).
protected java.awt.Insets getInsets(java.awt.Insets i1,
java.awt.Insets i2,
float d)
Insets object that lays distance d (0..1) between both arguments.
i1 - First Insets, may be null.i2 - Second Insets, may be null.d - 0..1 Where 0.0 will return i1 and 1.0 will return i2. Values in between
are interpolated.
Insets object that lies distance d (0..1) between both arguments.
May be null.
protected boolean checkRects(AbsRect r1,
AbsRect r2)
x, y, w, h of the argument rectangles are of same type.
r1 - The first rectr2 - The second rect
true if they are compatible for animation.public PlaceRect getStartRect()
AbsRect.
AbsRect.public PlaceRect getEndRect()
AbsRect.
AbsRect.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 | ||||||||