Package worldBuilder

Class RiverMap


  • public class RiverMap
    extends java.lang.Object
    a class to render the oceans and rivers as an image in shades of blue
    • Constructor Summary

      Constructors 
      Constructor Description
      RiverMap​(Map map)
      instantiate a river and water-body map renderer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paint​(java.awt.Graphics g, int width, int height)
      Display the streams and rivers
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RiverMap

        public RiverMap​(Map map)
        instantiate a river and water-body map renderer
        Parameters:
        map - to be rendered
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          int width,
                          int height)
        Display the streams and rivers
        Parameters:
        g - Graphics context
        width - of the display map
        height - of the display map