com.partnersoft.v3x.apps.MapBrowser
Class GridMapBoundsTester

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.GridMapBoundsTester
All Implemented Interfaces:
MapBoundsTester, java.io.Serializable

public class GridMapBoundsTester
extends java.lang.Object
implements MapBoundsTester, java.io.Serializable

Tests the bounds of a hierarchical, gridded map set.

See Also:
Serialized Form

Constructor Summary
GridMapBoundsTester()
          Create a new, empty GridMapBoundsTester.
GridMapBoundsTester(GridSystem system, java.util.Set definedCells)
          Create a GridMapBoundsTester with the given GridSystem and set of the names of defined top-level cells.
 
Method Summary
 java.util.Set getDefinedCells()
          This is a set of String grid names; any grid or subgrid of these is assumed to be defined.
 GridSystem getSystem()
          The GridSystem used to calculate areas for the defined cell names.
 boolean pointExists(Coord3D point)
          Returns true if the point is within the map's defined area.
 void setDefinedCells(java.util.Set newDefinedCells)
           
 void setSystem(GridSystem newSystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridMapBoundsTester

public GridMapBoundsTester()
Create a new, empty GridMapBoundsTester.


GridMapBoundsTester

public GridMapBoundsTester(GridSystem system,
                           java.util.Set definedCells)
Create a GridMapBoundsTester with the given GridSystem and set of the names of defined top-level cells.

Method Detail

pointExists

public boolean pointExists(Coord3D point)
Returns true if the point is within the map's defined area.

Specified by:
pointExists in interface MapBoundsTester

getSystem

public GridSystem getSystem()
The GridSystem used to calculate areas for the defined cell names.


setSystem

public void setSystem(GridSystem newSystem)

getDefinedCells

public java.util.Set getDefinedCells()
This is a set of String grid names; any grid or subgrid of these is assumed to be defined.


setDefinedCells

public void setDefinedCells(java.util.Set newDefinedCells)