Package worldBuilder

Class SoilMap


  • public class SoilMap
    extends java.lang.Object
    a class to render the MeshPoint soil types in shades of yellow-to-blue
    • Constructor Summary

      Constructors 
      Constructor Description
      SoilMap​(Map map)
      instantiate a soil map generator
    • 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 altitude map
      • Methods inherited from class java.lang.Object

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

      • SoilMap

        public SoilMap​(Map map)
        instantiate a soil map generator
        Parameters:
        map - to be displayed
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          int width,
                          int height,
                          int cellWidth)
        Render current mesh as an altitude map
        Parameters:
        g - Graphics context
        width - of the display map
        height - of the display map
        cellWidth - - pixels per cell