home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / RELEASE.ZIP / sub_arctic / anim / trajectory.java < prev    next >
Encoding:
Java Source  |  1996-10-04  |  1.8 KB  |  55 lines

  1. package sub_arctic.anim;
  2.  
  3. /** 
  4.  * This is an interface for trajectories. It converts a floating 
  5.  * point value into a Object. This is done with the help of 
  6.  * a pacing function. <p>
  7.  *
  8.  * @author Ian Smith
  9.  */
  10. public interface trajectory {
  11.  
  12.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  13.  
  14.   /**
  15.    * This is the function that does the mapping of a point in 
  16.    * time to an object. You can return any object you like 
  17.    * and this will be handed to the animatable object which is 
  18.    * the target of this transition.<p>
  19.    *
  20.    * @param double parm the point in time to be mapped  
  21.    * @param Object the result of mapping this time point
  22.    */
  23.   public Object object_for_parm(double parm);
  24.  
  25.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  26.  
  27.   /**
  28.    * This returns the pacing function (pacer) for this trajectory.
  29.    * The pacing function maps time to time and the result of this
  30.    * function is passed to the object_for_parm() function above.<p>
  31.    *
  32.    * @return pacer the pacer objet (pacing function) to use for this trajectory 
  33.    */
  34.   public pacer pacing_function();
  35.  
  36.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  37. }
  38.  
  39. /*=========================== COPYRIGHT NOTICE ===========================
  40.  
  41. This file is part of the subArctic user interface toolkit.
  42.  
  43. Copyright (c) 1996 Scott Hudson and Ian Smith
  44. All rights reserved.
  45.  
  46. The subArctic system is freely available for most uses under the terms
  47. and conditions described in 
  48.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  49. and appearing in full in the lib/interactor.java source file.
  50.  
  51. The current release and additional information about this software can be 
  52. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  53.  
  54. ========================================================================*/
  55.