I put new updated source (Sam's modifications of the Luca's layout) +
my small additions
http://www.concord.org/~dima/AnimatingCardLayout.html
new:
Animation interface has 2 new methods:
public void setDirection(boolean direction);
public void setAnimationDuration(int duration);
AnimatingCardLayout class has additional method:
public void setAnimationDuration(int animationDuration){
we have now 6 animation's effects:
1. Dashboard like (frame rate improved)
2. Cube (frame rate improved)
3. Slide
4. Radial
5. Iris
6. Fade
enjoy
On Dec 19, 2004, at 2:29 PM, Sam Berlin wrote:
I spent some time modifying the AnimatingCardLayout class a bit with
the
intention of removing the duplicate CardLayout card & making it so
that
applications could use 'CardLayout layout = new
AnimatingCardLayout(MyAnimation());' and not have to worry about the
fact
that the card layout actually is animating. I also removed some of
the
complexity from the animations -- they no longer have to worry about
making
components visible or not, all they have to do is give a callback to
the
'AnimationListener' that animation is finished.
Attached is a zip of the resulting classes. Thanks much to Luca for
his
excellent work on creating the groundwork for AnimatingCardLayout and
to
Dmitry for inspiring all this work.
Thanks,
Sam
<dashboard.zip>
Dmitry Markman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/
email@hidden
This email sent to email@hidden