gistoolkit.server
Class ImageGenerator

java.lang.Object
  extended bygistoolkit.server.ImageGenerator

public class ImageGenerator
extends java.lang.Object

Class to generate an image from the layer definitions, and a real world Envelope.

Author:
ithaqua

Constructor Summary
ImageGenerator(java.lang.String inLayersFile)
          Creates new ImageGenerator
 
Method Summary
 java.awt.image.BufferedImage drawImage(Converter inConverter)
          Draw the map to an immage and return the image.
 Layer getLayer(java.lang.String inLayerName)
          Retrieve a layer by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageGenerator

public ImageGenerator(java.lang.String inLayersFile)
               throws java.lang.Exception
Creates new ImageGenerator

Method Detail

drawImage

public java.awt.image.BufferedImage drawImage(Converter inConverter)
Draw the map to an immage and return the image.


getLayer

public Layer getLayer(java.lang.String inLayerName)
Retrieve a layer by name. Returns the layer with the given name, if there are duplicates, it will return the first one. If this layer does not exist then it will return null.