001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.animation; 003 004import java.awt.Graphics; 005 006/** 007 * Graphical animation extension. Copied from Icedtea-Web. 008 * @author Jiri Vanek (Red Hat) 009 * @see <a href="http://icedtea.classpath.org/hg/icedtea-web/rev/87d3081ab573">Initial commit</a> 010 * @since 14578 011 */ 012public interface AnimationExtension { 013 014 /** 015 * Adjusts for size. 016 * @param w width 017 * @param h height 018 */ 019 void adjustForSize(int w, int h); 020 021 /** 022 * Paints static contents. 023 * @param g graphics object 024 */ 025 void paint(Graphics g); 026 027 /** 028 * Performs the optional animation. 029 */ 030 void animate(); 031}