简体   繁体   English

Java Swing:有标准的衰落率吗?

[英]Java Swing: is there a standard fading rate?

At the moment, I'm fading components in/out at a rate of 0.1 alpha/second . 目前,我以0.1 alpha/second的速度输入/输出组件。 I've read some examples online that use 0.03 alpha/second . 我在线阅读了一些使用0.03 alpha/second示例。 Is there a standard rate at which components should fade in/out? 是否存在组件应淡入/淡出的标准速率? Is there a standard transition animation rate? 是否有标准的过渡动画率?

I don't believe that such a standard exists and will ever exist for that reasons : 我不相信这样的标准存在并且因为这个原因而永远存在:

  • It is mostly subjective 这主要是主观的
  • It depends on the speed of the application. 这取决于应用程序的速度。 If your application is slow you would rather put a slow effect in order to comply with the rest or mask the slowness 如果您的应用程序运行缓慢,您宁愿放慢速效果以符合其余部分或掩盖缓慢
  • It depends on what's inside your components. 这取决于组件内部的内容。 For example it makes sense that a growl notification will fade slowly while an alert box will fade quickly once you click on "ok" 例如,一旦你点击“确定”,一个警报框会快速消失,咆哮通知会慢慢消失是有道理的
  • Fading is just an effect it won't affect your user so much as long as it doesn't affect the functional experience (like for example a looong fading that avoids you to use other fonctionality while it is happening). 褪色只是一种影响,它不会影响你的用户,只要它不影响功能体验(例如,一个looong褪色,避免你在其发生时使用其他功能)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM