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 * @param x x origin of view area 019 * @param y y origin of view area 020 */ 021 void adjustForSize(int w, int h, int x, int y); 022 023 /** 024 * Paints static contents. 025 * @param g graphics object 026 */ 027 void paint(Graphics g); 028 029 /** 030 * Performs the optional animation. 031 */ 032 void animate(); 033}