Class ChristmasExtension
- java.lang.Object
-
- org.openstreetmap.josm.gui.animation.ChristmasExtension
-
- All Implemented Interfaces:
AnimationExtension
public class ChristmasExtension extends java.lang.Object implements AnimationExtension
Christmas animation extension. Copied from Icedtea-Web.- Since:
- 14578
- See Also:
- Initial commit
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IAnimObject>objsprivate static java.util.Randomseed
-
Constructor Summary
Constructors Constructor Description ChristmasExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustForSize(int w, int h, int x, int y)Adjusts for size.voidanimate()Performs the optional animation.voidpaint(java.awt.Graphics g)Paints static contents.
-
-
-
Field Detail
-
seed
private static final java.util.Random seed
-
objs
private final java.util.List<IAnimObject> objs
-
-
Constructor Detail
-
ChristmasExtension
public ChristmasExtension()
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g)
Description copied from interface:AnimationExtensionPaints static contents.- Specified by:
paintin interfaceAnimationExtension- Parameters:
g- graphics object
-
animate
public void animate()
Description copied from interface:AnimationExtensionPerforms the optional animation.- Specified by:
animatein interfaceAnimationExtension
-
adjustForSize
public final void adjustForSize(int w, int h, int x, int y)
Description copied from interface:AnimationExtensionAdjusts for size.- Specified by:
adjustForSizein interfaceAnimationExtension- Parameters:
w- widthh- heightx- x origin of view areay- y origin of view area
-
-