fenfire-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ff-cvs] libvob/doc/pegboard/animation_api--mudyc peg.rst


From: Matti Katila
Subject: [ff-cvs] libvob/doc/pegboard/animation_api--mudyc peg.rst
Date: Sun, 26 Oct 2003 14:25:35 -0500

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Matti Katila <address@hidden>   03/10/26 14:25:35

Modified files:
        doc/pegboard/animation_api--mudyc: peg.rst 

Log message:
        more

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/doc/pegboard/animation_api--mudyc/peg.rst.diff?tr1=1.19&tr2=1.20&r1=text&r2=text

Patches:
Index: libvob/doc/pegboard/animation_api--mudyc/peg.rst
diff -u libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.19 
libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.20
--- libvob/doc/pegboard/animation_api--mudyc/peg.rst:1.19       Sun Oct 26 
14:18:46 2003
+++ libvob/doc/pegboard/animation_api--mudyc/peg.rst    Sun Oct 26 14:25:35 2003
@@ -5,8 +5,8 @@
 
 :Authors:  mudyc
 :Date-Created: 2003-09-27
-:Last-Modified: $Date: 2003/10/26 19:18:46 $
-:Revision: $Revision: 1.19 $
+:Last-Modified: $Date: 2003/10/26 19:25:35 $
+:Revision: $Revision: 1.20 $
 :Status:   Current
 :Stakeholders: mudyc, tjl, benja
 :Scope:    Minor
@@ -169,50 +169,50 @@
      * Example: When you want to interpolate a red box from left to right
      * you could do it, like:
      * <pre>
-     * class Scene:
+     *  class Scene:
      *      """ Example scene to animate red box from left to right 
      *      and backwards.
-     *             """
-     *     def __init__(self, windowAnimation):
-     *         self.windowAnimation = windowAnimation
+     *      """
+     *      def __init__(self, windowAnimation):
+     *          self.windowAnimation = windowAnimation
      *          self.keyHit = 0
-     *         self.left = 100
-     *         self.right = 500
-     *     def scene(self, vs):
-     *         if self.keyHit == 0:
-     *             cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
+     *          self.left = 100
+     *          self.right = 500
+     *      def scene(self, vs):
+     *          if self.keyHit == 0:
+     *              cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
      *                      50, 1,1, 100,100)
-     *         else:
-     *             cs = vs.orthoBoxCS(0, "RedBox", 0,self.right,
+     *          else:
+     *              cs = vs.orthoBoxCS(0, "RedBox", 0,self.right,
      *                      50, 1,1, 100,100)
      *          vs.put(vob.vobs.RectBgVob(java.awt.Color.red), cs)
-     *     def key(self, key):
+     *      def key(self, key):
      *          self.keyHit = 1 - self.keyHit
-     *         self.windowAnimation.animate()
+     *          self.windowAnimation.animate()
      * </pre>
      * </li><li>
      * Example: When you want to pop a red box from left to right:
      * <pre>
-     * class Scene:
+     *  class Scene:
      *      """ Example scene to pop red box from left to right 
      *      and backwards.
-     *             """
-     *     def __init__(self, windowAnimation):
-     *         self.windowAnimation = windowAnimation
+     *      """
+     *      def __init__(self, windowAnimation):
+     *          self.windowAnimation = windowAnimation
      *          self.keyHit = 0
-     *         self.left = 100
-     *         self.right = 500
-     *     def scene(self, vs):
-     *         if self.keyHit == 0:
-     *             cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
+     *          self.left = 100
+     *          self.right = 500
+     *      def scene(self, vs):
+     *          if self.keyHit == 0:
+     *              cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
      *                      50, 1,1, 100,100)
-     *         else:
-     *             cs = vs.orthoBoxCS(0, "RedBox", 0,self.right,
+     *          else:
+     *              cs = vs.orthoBoxCS(0, "RedBox", 0,self.right,
      *                      50, 1,1, 100,100)
      *          vs.put(vob.vobs.RectBgVob(java.awt.Color.red), cs)
-     *     def key(self, key):
+     *      def key(self, key):
      *          self.keyHit = 1 - self.keyHit
-     *         self.windowAnimation.animate()
+     *          self.windowAnimation.animate()
      * </pre>
      * </li><li>
      * Example: Another way to pop a red box from left to right.
@@ -221,29 +221,30 @@
      *  class Scene:
      *      """ Example scene to pop red box from left to right 
      *      and backwards.
-     *             """
-     *     def __init__(self, windowAnimation):
-     *         self.windowAnimation = windowAnimation
+     *      """
+     *      def __init__(self, windowAnimation):
+     *          self.windowAnimation = windowAnimation
      *          self.keyHit = 0
-     *         self.left = 100
-     *         self.right = 500
-     *     def scene(self, vs):
+     *          self.left = 100
+     *          self.right = 500
+     *      def scene(self, vs):
      *          if self.windowAnimation.getCurrentVS() != None: return
-     *         cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
-     *                50, 1,1, 100,100)
+     *          cs = vs.orthoBoxCS(0, "RedBox", 0,self.left,
+     *              50, 1,1, 100,100)
      *          vs.put(vob.vobs.RectBgVob(java.awt.Color.red), cs)
-     *     def key(self, key):
+     *      def key(self, key):
      *          self.keyHit = 1 - self.keyHit
      *
      *          vs = self.windowAnimation.getCurrentVS()
      *          cs = vs.matcher.getCS(0, "RedBox")
      *          if self.keyHit == 0:
-     *             vs.coords.setOrthoBoxParams(cs, 0,self.left,
+     *              vs.coords.setOrthoBoxParams(cs, 0,self.left,
      *                   50, 1,1, 100,100)
-     *         else:
-     *             vs.coords.setOrthoBoxParams(cs, 0,self.right,
+     *          else:
+     *              vs.coords.setOrthoBoxParams(cs, 0,self.right,
      *                   50, 1,1, 100,100)
-     *         self.windowAnimation.rerender()
+     *          self.windowAnimation.rerender()
+     * </pre>
      * </li><li>
      *  Example: Quite a difficult example where we start to drag 
      *  red box around the scene that may end to be yellow one.
@@ -294,20 +295,22 @@
      *          else:
      *              self.windowAnimation.switchVS()
      *          self.ev = ev
+     * </pre>
      * </li> </ol>
      */
     public interface WindowAnimation {
 
 
         /** Animate to next VobScene by creating a new VobScene.
-         * The interpolation time between current screen and VobScene
-        * (screen after animations) in future is set via AbstractUpdateManager.
-         * This method is pending, i.e., next screen update is soon 
-         * but not immediately.
+         *  The interpolation time between current screen and VobScene
+         *  (screen after animations) in future is set via 
+         *  AbstractUpdateManager.
+         *  This method is pending, i.e., next screen update is soon 
+         *  but not immediately.
          * <p> 
-         * Animation between scenes is done between keys, i.e., key "A" in 
-         * current visible scene will animate to where 
-         * key "A" is in scene in future.
+         *  Animation between scenes is done between keys, i.e., key "A" in 
+         *  current visible scene will animate to where 
+         *  key "A" is in scene in future.
          *
          * @see AbstractUpdateManager
          * @see VobMatcher




reply via email to

[Prev in Thread] Current Thread [Next in Thread]