|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.apps.MapBrowser.GridMapTranslator
public class GridMapTranslator
Translates map coordinates into grid system coordinates.
| Constructor Summary | |
|---|---|
GridMapTranslator()
Create a new, empty GridMapTranslator. |
|
GridMapTranslator(GridSystem system)
Create a GridMapTranslator for the given GridSystem. |
|
| Method Summary | |
|---|---|
Coord3D |
coordFor(java.lang.String locationName)
Returns the Sheet Pixel Coordinate for the center of the given customer map location. |
java.util.ArrayList |
getGridToScaleLevel()
|
java.util.ArrayList |
getScaleToGridLevel()
|
GridSystem |
getSystem()
GridSystem used for the translation (shrug). |
java.lang.String |
nameFor(Coord3D coord)
Returns the customer's map location name for the given point. |
java.lang.String |
nameFor(Coord3D coords,
int scale)
Returns the customer's map location name for the given coordinate at the given scale. |
int |
scaleFor(java.lang.String locationName)
Returns the scale index for the given customer map location name. |
void |
setGridToScaleLevel(java.util.ArrayList newMapping)
|
void |
setScaleToGridLevel(java.util.ArrayList newMapping)
|
void |
setSystem(GridSystem newSystem)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridMapTranslator()
public GridMapTranslator(GridSystem system)
| Method Detail |
|---|
public java.lang.String nameFor(Coord3D coords,
int scale)
nameFor in interface CustomerMapLocationTranslatorpublic java.lang.String nameFor(Coord3D coord)
nameFor in interface CustomerMapLocationTranslatorpublic Coord3D coordFor(java.lang.String locationName)
coordFor in interface CustomerMapLocationTranslatorpublic int scaleFor(java.lang.String locationName)
CustomerMapLocationTranslator
scaleFor in interface CustomerMapLocationTranslatorpublic GridSystem getSystem()
public void setSystem(GridSystem newSystem)
public java.util.ArrayList getScaleToGridLevel()
public void setScaleToGridLevel(java.util.ArrayList newMapping)
public java.util.ArrayList getGridToScaleLevel()
public void setGridToScaleLevel(java.util.ArrayList newMapping)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||