NullRepaintCollector.java :  » Game » easy-game-client » org » easy » gui » ani » collector » Java Open Source

Java Open Source » Game » easy game client 
easy game client » org » easy » gui » ani » collector » NullRepaintCollector.java
     package org.easy.gui.ani.collector;

import org.easy.gui.Rectangle;
import org.easy.gui.ani.RepaintCollector;


     /*********************************************************************
     * A Null Object RepaintCollector implemenation.
     *
     * @version
     *   2002-12-01
     * @since
     *   2002-12-01
     * @author
     *   <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
     *********************************************************************/

     public class  NullRepaintCollector
       implements RepaintCollector
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     {

     public static final NullRepaintCollector  INSTANCE
       = new NullRepaintCollector ( );

     private static final Rectangle [ ]  EMPTY_ARRAY = new Rectangle [ 0 ];

     //////////////////////////////////////////////////////////////////////
     // accessor methods
     //////////////////////////////////////////////////////////////////////

     public int  getCount ( ) { return 0; }

     public Rectangle [ ]  getRepaintRegions ( ) { return EMPTY_ARRAY; }

     //////////////////////////////////////////////////////////////////////
     // mutator methods
     //////////////////////////////////////////////////////////////////////

     public void  repaint ( int  x, int  y, int  width, int  height ) { }

     public void  repaint ( ) { }

     public void  reset   ( ) { }

     //////////////////////////////////////////////////////////////////////
     // private constructor method
     //////////////////////////////////////////////////////////////////////

     private  NullRepaintCollector ( ) { }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.