Files
narya/src/java/com/threerings/media/animation/AnimatedView.java
T
Michael Bayne 63a32a6332 Modified rendering to use a hand managed volatile image as a back buffer
instead of using a buffer strategy. This will shortly be extended to
support more efficient scrolling as well.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1021 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 01:23:56 +00:00

28 lines
904 B
Java

//
// $Id: AnimatedView.java,v 1.3 2002/02/19 01:23:56 mdb Exp $
package com.threerings.media.animation;
import java.awt.Rectangle;
import java.util.List;
/**
* A view that wishes to interact with the animation manager needs to
* implement this interface to give the animation manager a means by which
* to communicate the regions of the view that need to be repainted
* because of the process of animating on top of the view.
*/
public interface AnimatedView
{
/**
* Requests that the animated view paint itself immediately (that it
* complete the painting process before returning from this function).
* This will only be called on the AWT thread and when it is safe to
* paint.
*
* @param invalidRects the list of rectangles that have been
* invalidated since the last call to this method.
*/
public void paintImmediately (List invalidRects);
}