com.partnersoft.v3x.apps.MapBrowser
Interface CustomerMapLocationTranslator

All Known Implementing Classes:
DummyTranslator, GridMapTranslator, MapLocationMultiTranslator

public interface CustomerMapLocationTranslator

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.


Method Summary
 Coord3D coordFor(java.lang.String locationName)
          Returns the coordinate for the center of the given customer map location name.
 java.lang.String nameFor(Coord3D coord)
          Returns the customer's map location name for the given coordinate.
 java.lang.String nameFor(Coord3D 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.
 

Method Detail

nameFor

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


nameFor

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


coordFor

Coord3D 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.