001 package com.croftsoft.core.animation; 002 003 import java.awt.Graphics2D; 004 import javax.swing.JComponent; 005 006 /********************************************************************* 007 * An object that knows how and where to paint a graphical JComponent. 008 * 009 * @version 010 * 2002-03-23 011 * @since 012 * 2002-02-25 013 * @author 014 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 015 *********************************************************************/ 016 017 public interface ComponentPainter 018 ////////////////////////////////////////////////////////////////////// 019 ////////////////////////////////////////////////////////////////////// 020 { 021 022 public void paint ( 023 JComponent component, 024 Graphics2D graphics ); 025 026 ////////////////////////////////////////////////////////////////////// 027 ////////////////////////////////////////////////////////////////////// 028 }