Package worldBuilder

Class ErodeMap


  • public class ErodeMap
    extends java.lang.Object
    a class to render world mesh erosion and deposition coloration: shades of violet for erosion, yellow for deposition.
    • Constructor Summary

      Constructors 
      Constructor Description
      ErodeMap​(Map map)
      instantiate an erosion/deposition 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, int cellWidth)
      Render current mesh as an erosion/deposition map
      • Methods inherited from class java.lang.Object

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

      • ErodeMap

        public ErodeMap​(Map map)
        instantiate an erosion/deposition 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 an erosion/deposition map
        Parameters:
        g - Graphics context
        width - of the display map
        height - of the display map
        cellWidth - - pixels per cell