001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.gui.animation; 003 004import java.awt.Graphics; 005 006/** 007 * An animated object 008 * @since 18929 009 */ 010public interface IAnimObject { 011 012 /** Paint the object 013 * @param g the graphics object to paint to 014 */ 015 void paint(Graphics g); 016 017 /** Set the extend when window size changed 018 * @param w window width 019 * @param h window height 020 */ 021 void setExtend(int w, int h); 022 023 /** Animate the object - Cause next step of animation 024 */ 025 void animate(); 026}