001 package com.croftsoft.core.animation.painter;
002
003 import java.awt.Graphics2D;
004 import javax.swing.JComponent;
005
006 import com.croftsoft.core.animation.ComponentPainter;
007
008 /*********************************************************************
009 * Null object singleton implementation of ComponentPainter.
010 *
011 * @version
012 * 2003-07-11
013 * @since
014 * 2003-07-11
015 * @author
016 * <a href="http://croftsoft.com/">David Wallace Croft</a>
017 *********************************************************************/
018
019 public final class NullComponentPainter
020 implements ComponentPainter
021 //////////////////////////////////////////////////////////////////////
022 //////////////////////////////////////////////////////////////////////
023 {
024
025 public static final NullComponentPainter INSTANCE
026 = new NullComponentPainter ( );
027
028 //////////////////////////////////////////////////////////////////////
029 //////////////////////////////////////////////////////////////////////
030
031 public void paint (
032 JComponent component,
033 Graphics2D graphics )
034 //////////////////////////////////////////////////////////////////////
035 {
036 }
037
038 //////////////////////////////////////////////////////////////////////
039 //////////////////////////////////////////////////////////////////////
040
041 private NullComponentPainter ( ) { }
042
043 //////////////////////////////////////////////////////////////////////
044 //////////////////////////////////////////////////////////////////////
045 }