shp_renderer.data
Class SHPMap

java.lang.Object
  extended by shp_renderer.data.SHPMap

public class SHPMap
extends java.lang.Object

SHPMap - This class represents the shapefile itself. It has access to the geographic data, knows if it is visible or not, and knows its own location name. If ever we were to render multiple shapefiles, like as pieces in a map, we may choose to manage them by name with some visible and some not.

Author:
Richard McKenna

Constructor Summary
SHPMap(java.lang.String initLocation, SHPData initShapefileData)
          This constructor initializes the map data, assuming it's already been loaded.
 
Method Summary
 java.lang.String getLocation()
          This method returns the location.
 SHPData getShapefileData()
          This method returns the shape file data.
 boolean isVisible()
          This method returns is the map is visible or not.
 void setVisible(boolean initVisible)
          This method updates whether or not the map is visible.
 java.util.Iterator<SHPShape> shapesIterator()
          This method creates an iterator to go through all the shapes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPMap

public SHPMap(java.lang.String initLocation,
              SHPData initShapefileData)
This constructor initializes the map data, assuming it's already been loaded.

Parameters:
initLocation - The location of the map.
initShapefileData - The shape file information.
Method Detail

getLocation

public java.lang.String getLocation()
This method returns the location.

Returns:
The location of the map.

getShapefileData

public SHPData getShapefileData()
This method returns the shape file data.

Returns:
The shape file data.

isVisible

public boolean isVisible()
This method returns is the map is visible or not.

Returns:
Whether or not the map is visible.

shapesIterator

public java.util.Iterator<SHPShape> shapesIterator()
This method creates an iterator to go through all the shapes.

Returns:
An iterator for all the shapes.

setVisible

public void setVisible(boolean initVisible)
This method updates whether or not the map is visible.

Parameters:
initVisible - Whether or not to display the map.