Package worldBuilder
Class RainMap
- java.lang.Object
-
- worldBuilder.RainMap
-
public class RainMap extends java.lang.Object
a class to render the world mesh rainfall as a 2D image in shades of blue-green
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(java.awt.Graphics g, int width, int height, int cellWidth)
Render current mesh as a rainfall map
-
-
-
Constructor Detail
-
RainMap
public RainMap(Map map)
instantiate a rainfall map renderer- Parameters:
map
- to be rendered
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g, int width, int height, int cellWidth)
Render current mesh as a rainfall map- Parameters:
g
- Graphics contextwidth
- of the display mapheight
- of the display mapcellWidth
- - pixels per cell for each (row,col) compute interpolated rain generate shaded background
-
-