001         package com.croftsoft.core.animation;
002    
003         import java.awt.Rectangle;
004         import javax.swing.JComponent;
005    
006         /*********************************************************************
007         * Collects repaint requests.
008         *
009         * @version
010         *   2002-12-07
011         * @since
012         *   2002-03-09
013         * @author
014         *   <a href="https://www.croftsoft.com/">David Wallace Croft</a>
015         *********************************************************************/
016    
017         public interface  RepaintCollector
018         //////////////////////////////////////////////////////////////////////
019         //////////////////////////////////////////////////////////////////////
020         {
021    
022         //////////////////////////////////////////////////////////////////////
023         // accessor methods
024         //////////////////////////////////////////////////////////////////////
025    
026         public int  getCount ( );
027    
028         public Rectangle [ ]  getRepaintRegions ( );
029    
030         //////////////////////////////////////////////////////////////////////
031         // mutator methods
032         //////////////////////////////////////////////////////////////////////
033    
034         public void  repaint ( );
035    
036         public void  repaint (
037           int  x,
038           int  y,
039           int  width,
040           int  height );
041    
042         public void  reset ( );
043    
044         //////////////////////////////////////////////////////////////////////
045         //////////////////////////////////////////////////////////////////////
046         }