Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dashboard effect in Java application



Incredible job Sam and Dmitry. Now it's a real package, clean, effective......

I would suggest one more modification I experimented in the weekend to improve a little bit the frame rate.

In the animation thread, turn effective the Arnaud suggestion by commenting/uncommentig:

try{
//Thread.sleep(dt);
//repaint();
//getToolkit().sync();
SwingUtilities.invokeAndWait(repaint); //idea email@hidden Arnaud Masson
}catch(Throwable tt){
}


the average repaint time does not change too much but the counter increases a 10% or more.......

Well, the cube animation is my favorite now!!!!

			Luca

On Dec 19, 2004, at 23:54, Dmitry Markman wrote:

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


_______________________________________________ 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
References: 
 >Re: Dashboard effect in Java application (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.