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