Class DropImage
- java.lang.Object
-
- org.openstreetmap.josm.gui.animation.DropImage
-
- All Implemented Interfaces:
IAnimObject
class DropImage extends java.lang.Object implements IAnimObject
A random image displayed whenChristmasExtensionis active.- Since:
- 18929
-
-
Constructor Summary
Constructors Constructor Description DropImage(int w, int h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanimate()Animate the object - Cause next step of animationprivate java.awt.ImagegetImage()voidpaint(java.awt.Graphics g)Paint the objectvoidsetExtend(int w, int h)Set the extend when window size changed
-
-
-
Field Detail
-
seed
private static final java.util.Random seed
-
averageFallSpeed
static final int averageFallSpeed
- See Also:
- Constant Field Values
-
w
private int w
-
h
private int h
-
edge
private final java.awt.Point edge
-
fallSpeed
private final int fallSpeed
-
image
private java.awt.Image image
-
-
Constructor Detail
-
DropImage
DropImage(int w, int h)
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g)
Description copied from interface:IAnimObjectPaint the object- Specified by:
paintin interfaceIAnimObject- Parameters:
g- the graphics object to paint to
-
setExtend
public void setExtend(int w, int h)
Description copied from interface:IAnimObjectSet the extend when window size changed- Specified by:
setExtendin interfaceIAnimObject- Parameters:
w- window widthh- window height
-
animate
public void animate()
Description copied from interface:IAnimObjectAnimate the object - Cause next step of animation- Specified by:
animatein interfaceIAnimObject
-
getImage
private java.awt.Image getImage()
-
-