Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.animation;
|
---|
3 |
|
---|
4 | import 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 | */
|
---|
12 | public 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.