import java.awt.*;

/**
 * This interface declares the methods that a component(which is double
 * buffered) should have
 *
 * @author Selim Mimaroglu
 * @version 1.0
 */
public interface DoubleBufferedComponent {

    /**
     * Paint this(JPanel) on screen
     * @param g Graphics instance
     */
    void paintFrame(Graphics g);

    /**
     * Get size of this component (JPanel)
     */
    Dimension getSize();

    /**
     * Create an offscreen image
     * @param width width 
     * @param height height
     */
    Image createImage(int width, int height);
}

