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 whenChristmasExtension
is 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 void
animate()
Animate the object - Cause next step of animationprivate java.awt.Image
getImage()
void
paint(java.awt.Graphics g)
Paint the objectvoid
setExtend(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:IAnimObject
Paint the object- Specified by:
paint
in interfaceIAnimObject
- Parameters:
g
- the graphics object to paint to
-
setExtend
public void setExtend(int w, int h)
Description copied from interface:IAnimObject
Set the extend when window size changed- Specified by:
setExtend
in interfaceIAnimObject
- Parameters:
w
- window widthh
- window height
-
animate
public void animate()
Description copied from interface:IAnimObject
Animate the object - Cause next step of animation- Specified by:
animate
in interfaceIAnimObject
-
getImage
private java.awt.Image getImage()
-
-