source: josm/trunk/src/org/openstreetmap/josm/gui/animation/AnimationExtension.java@ 14578

Last change on this file since 14578 was 14578, checked in by Don-vip, 5 years ago

It's Christmas time! Animate our "Getting Started" page with shining stars.

Adapted from Icedtea-Web, original code by Jiri Vanek (Red Hat).
See http://icedtea.classpath.org/hg/icedtea-web/rev/87d3081ab573

  • Property svn:eol-style set to native
File size: 685 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.animation;
3
4import java.awt.Graphics;
5
6/**
7 * Graphical animation extension. Copied from Icedtea-Web.
8 * @author Jiri Vanek (Red Hat)
9 * @see <a href="http://icedtea.classpath.org/hg/icedtea-web/rev/87d3081ab573">Initial commit</a>
10 * @since 14578
11 */
12public interface AnimationExtension {
13
14 /**
15 * Adjusts for size.
16 * @param w width
17 * @param h height
18 */
19 void adjustForSize(int w, int h);
20
21 /**
22 * Paints static contents.
23 * @param g graphics object
24 */
25 void paint(Graphics g);
26
27 /**
28 * Performs the optional animation.
29 */
30 void animate();
31}
Note: See TracBrowser for help on using the repository browser.