Java Doc for AnimationFunctions.java in  » Swing-Library » jgoodies-animation » com » jgoodies » animation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » jgoodies animation » com.jgoodies.animation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jgoodies.animation.AnimationFunctions

AnimationFunctions
final public class AnimationFunctions (Code)
This class consists only of static methods that construct and operate on AnimationFunction s.
author:
   Karsten Lentzsch
version:
   $Revision: 1.1 $
See Also:   AnimationFunction

Inner Class :public static class FloatFunction

Field Summary
final public static  AnimationFunctionONE
     A constant AnimationFunction that returns 1 all the time.
final public static  AnimationFunctionZERO
     A constant AnimationFunction that returns 0.0f all the time.


Method Summary
public static  AnimationFunctionalphaColor(AnimationFunction f, Color baseColor)
     Creates and returns an animation function that returns time-based sRGB colors that are built from a given base color and an animation function of alpha values.
public static  FloatFunctionasFloat(AnimationFunction f)
     Creates a time-based function that wraps the given Float-based animation function to return the corresponding float values.
public static  AnimationFunctionconcat(AnimationFunction first, AnimationFunction second)
     Concatenates the fiven animation functions and returns a compound animation function that represents the concatenation.
public static  AnimationFunctionconstant(long duration, Object value)
     Creates and returns an animation function that returns a constant value over the given duration.
public static  AnimationFunctiondiscrete(long duration, Object[] values)
     Creates and returns a discrete animation function for the given duration and values.
public static  AnimationFunctiondiscrete(long duration, Object[] values, float[] keyTimes)
     Creates and returns a discrete animation function for the given duration, values and interpolation key times.
public static  AnimationFunctionfromBy(long duration, float from, float by)
     Creates and returns a linear animation function for the given duration that returns Float in interval [from, from + by].
public static  AnimationFunctionfromTo(long duration, float from, float to)
     Ceates and returns a linear animation function with the given duration.
public static  AnimationFunctionlinear(long duration, Object[] values)
     Creates and returns a linear animation function that is defined by an array of numeric values; these are distributed equally over the duration.
public static  AnimationFunctionlinear(long duration, Object[] values, float[] keyTimes)
     Creates and returns a linear animation function that is defined by an array of numeric values and an array of relative key times.
public static  AnimationFunctionlinearColors(long duration, Color[] colors, float[] keyTimes)
     Creates an AnimationFunction that maps times to instances of Color.
public static  AnimationFunctionrandom(int min, int max, float changeProbability)
     Creates and returns an animation function that returns random values from the interval [min, max] with a given change probability.
public static  AnimationFunctionrepeat(AnimationFunction f, long repeatTime)
     Creates and returns an animation function that is defined by repeating the specified animation function.
public static  AnimationFunctionreverse(AnimationFunction f)
     Creates and returns an animation function that is defined by reverting the given animation function in time.

Field Detail
ONE
final public static AnimationFunction ONE(Code)
A constant AnimationFunction that returns 1 all the time.



ZERO
final public static AnimationFunction ZERO(Code)
A constant AnimationFunction that returns 0.0f all the time.





Method Detail
alphaColor
public static AnimationFunction alphaColor(AnimationFunction f, Color baseColor)(Code)
Creates and returns an animation function that returns time-based sRGB colors that are built from a given base color and an animation function of alpha values.

Useful for fading effects.
Parameters:
  f - the animation function of alpha values
Parameters:
  baseColor - the base color an animation function of colors




asFloat
public static FloatFunction asFloat(AnimationFunction f)(Code)
Creates a time-based function that wraps the given Float-based animation function to return the corresponding float values.
Parameters:
  f - the underlying animation function of floats an animation function the returns Float objects



concat
public static AnimationFunction concat(AnimationFunction first, AnimationFunction second)(Code)
Concatenates the fiven animation functions and returns a compound animation function that represents the concatenation.
Parameters:
  first - the concatenation's first AnimationFunction
Parameters:
  second - the concatenation's second AnimationFunction the concatenated animation function



constant
public static AnimationFunction constant(long duration, Object value)(Code)
Creates and returns an animation function that returns a constant value over the given duration.
Parameters:
  duration - the function's duration
Parameters:
  value - the Object that will be returned all the time a constant animation function



discrete
public static AnimationFunction discrete(long duration, Object[] values)(Code)
Creates and returns a discrete animation function for the given duration and values. The values are equally distributed over the duration.
Parameters:
  duration - the function's duration
Parameters:
  values - an array of discrete result values a discrete animation function



discrete
public static AnimationFunction discrete(long duration, Object[] values, float[] keyTimes)(Code)
Creates and returns a discrete animation function for the given duration, values and interpolation key times.
Parameters:
  duration - the function's duration
Parameters:
  values - an array of discrete result values
Parameters:
  keyTimes - an array of key times used to distribute the result values over the time a discrete animation function



fromBy
public static AnimationFunction fromBy(long duration, float from, float by)(Code)
Creates and returns a linear animation function for the given duration that returns Float in interval [from, from + by].
Parameters:
  duration - the animation duration
Parameters:
  from - the initial result value
Parameters:
  by - the difference that is added to the initial value a linear animation function with values in [from, from + by]



fromTo
public static AnimationFunction fromTo(long duration, float from, float to)(Code)
Ceates and returns a linear animation function with the given duration. The function values are Floats in the intervall [from, to].
Parameters:
  duration - the animation duration
Parameters:
  from - the initial result value
Parameters:
  to - the last result value a linear animation function with values in [from, to]



linear
public static AnimationFunction linear(long duration, Object[] values)(Code)
Creates and returns a linear animation function that is defined by an array of numeric values; these are distributed equally over the duration.
Parameters:
  duration - the animation duration
Parameters:
  values - an array of values a linear animation function for the given values



linear
public static AnimationFunction linear(long duration, Object[] values, float[] keyTimes)(Code)
Creates and returns a linear animation function that is defined by an array of numeric values and an array of relative key times.
Parameters:
  duration - the animation duration
Parameters:
  values - an array of values
Parameters:
  keyTimes - an array of key times used to distribute the result values over the time a linear animation function for the given values



linearColors
public static AnimationFunction linearColors(long duration, Color[] colors, float[] keyTimes)(Code)
Creates an AnimationFunction that maps times to instances of Color. The mapping is interpolated from an array of Colors using an array of key times.
Parameters:
  duration - the duration of this animation function
Parameters:
  colors - the colors to interpolate.
Parameters:
  keyTimes - an array of key times used to distribute the result values over the time. An AnimationFunction that maps times to sRGB colors.This mapping is defined by an arry of Color values and a corresponding array of key times that is used to interpolatesub-AnimationFunction for the red, green, blue and alpha values.



random
public static AnimationFunction random(int min, int max, float changeProbability)(Code)
Creates and returns an animation function that returns random values from the interval [min, max] with a given change probability.
Parameters:
  min - the minimum result value
Parameters:
  max - the maximum result value
Parameters:
  changeProbability - the probability that the value changes an animation function with random values in [min, max]



repeat
public static AnimationFunction repeat(AnimationFunction f, long repeatTime)(Code)
Creates and returns an animation function that is defined by repeating the specified animation function.
Parameters:
  f - the animation function to repeat
Parameters:
  repeatTime - the time to repeat the function the repeated animation function



reverse
public static AnimationFunction reverse(AnimationFunction f)(Code)
Creates and returns an animation function that is defined by reverting the given animation function in time.
Parameters:
  f - the animation function to reverse the reversed animation function



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.