com.partnersoft.maps.nomenclature
Interface MapNomenclature

All Superinterfaces:
Coggable
All Known Implementing Classes:
GridMapNomenclature

public interface MapNomenclature
extends Coggable

An interface that translates between customer location terminology and real coordinates. Useful for "go to" functions, displaying the current position in customer map space, etc.

Author:
Paul Reavis Copyright 1997 Partner Software, Inc.

Method Summary
 Point coordFor(java.lang.String locationName)
          Returns the coordinate for the center of the given customer map location name.
 java.lang.String nameFor(Point coord)
          Returns the customer's map location name for the given coordinate.
 java.lang.String nameFor(Point coord, int scaleIndex)
          Returns the customer's map location name for the given coordinate, at the given scale level.
 int scaleFor(java.lang.String locationName)
          Returns the scale index for the given customer map location name.
 
Methods inherited from interface com.partnersoft.data.cog.Coggable
getState, setState
 

Method Detail

nameFor

java.lang.String nameFor(Point coord)
Returns the customer's map location name for the given coordinate.


nameFor

java.lang.String nameFor(Point coord,
                         int scaleIndex)
Returns the customer's map location name for the given coordinate, at the given scale level.


coordFor

Point coordFor(java.lang.String locationName)
Returns the coordinate for the center of the given customer map location name.


scaleFor

int scaleFor(java.lang.String locationName)
Returns the scale index for the given customer map location name.