com.partnersoft.v3x.apps.MapBrowser
Class DummyTranslator

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

public class DummyTranslator
extends java.lang.Object
implements CustomerMapLocationTranslator, java.io.Serializable

A simple no-op translator that is handy for debugging Nomenclature.tof files.

See Also:
Serialized Form

Constructor Summary
DummyTranslator()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyTranslator

public DummyTranslator()
Method Detail

nameFor

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

Specified by:
nameFor in interface CustomerMapLocationTranslator

nameFor

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

Specified by:
nameFor in interface CustomerMapLocationTranslator

coordFor

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

Specified by:
coordFor in interface CustomerMapLocationTranslator

scaleFor

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

Specified by:
scaleFor in interface CustomerMapLocationTranslator