Pass the current time stamp to viewWillScroll().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1063 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-21 00:20:22 +00:00
parent 5f18acd3d8
commit 2e6c813bd6
2 changed files with 12 additions and 5 deletions
@@ -1,5 +1,5 @@
// //
// $Id: AnimatedPanel.java,v 1.15 2002/02/19 19:56:49 mdb Exp $ // $Id: AnimatedPanel.java,v 1.16 2002/02/21 00:20:22 mdb Exp $
package com.threerings.media.animation; package com.threerings.media.animation;
@@ -213,7 +213,7 @@ public class AnimatedPanel extends Canvas implements AnimatedView
// let our derived classes do whatever they need to do to // let our derived classes do whatever they need to do to
// prepare to be scrolled // prepare to be scrolled
viewWillScroll(dx, dy); viewWillScroll(dx, dy, now);
} }
} }
@@ -299,8 +299,15 @@ public class AnimatedPanel extends Canvas implements AnimatedView
* contents of the offscreen buffer, but the derived class will need * contents of the offscreen buffer, but the derived class will need
* to do whatever is necessary to prepare to repaint the exposed * to do whatever is necessary to prepare to repaint the exposed
* regions as well as update it's own internal state accordingly. * regions as well as update it's own internal state accordingly.
*
* @param dx the distance (in pixels) that the view will scroll in the
* x direction.
* @param dy the distance (in pixels) that the view will scroll in the
* y direction.
* @param now the current time, provided because we have it and
* scrolling views are likely to want to use it in calculating stuff.
*/ */
protected void viewWillScroll (int dx, int dy) protected void viewWillScroll (int dx, int dy, long now)
{ {
// nothing to do here // nothing to do here
} }
@@ -1,5 +1,5 @@
// //
// $Id: SceneViewPanel.java,v 1.34 2002/02/19 19:58:19 mdb Exp $ // $Id: SceneViewPanel.java,v 1.35 2002/02/21 00:20:22 mdb Exp $
package com.threerings.miso.scene; package com.threerings.miso.scene;
@@ -130,7 +130,7 @@ public class SceneViewPanel extends AnimatedPanel
/** /**
* If we're scrolling, we need to pass the word on to our scene view. * If we're scrolling, we need to pass the word on to our scene view.
*/ */
protected void viewWillScroll (int dx, int dy) protected void viewWillScroll (int dx, int dy, long now)
{ {
_view.viewWillScroll(dx, dy); _view.viewWillScroll(dx, dy);
} }