|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.maps.nomenclature.GridMapNomenclature
public class GridMapNomenclature
Translates map coordinates into grid system coordinates.
| Constructor Summary | |
|---|---|
GridMapNomenclature()
Create a new, empty GridMapTranslator. |
|
GridMapNomenclature(GridSystem system)
Create a GridMapTranslator for the given GridSystem. |
|
| Method Summary | |
|---|---|
Point |
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()
|
Cog |
getState()
|
GridSystem |
getSystem()
GridSystem used for the translation (shrug). |
java.lang.String |
nameFor(Point coord)
Returns the customer's map location name for the given point. |
java.lang.String |
nameFor(Point 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 |
setState(Cog newState)
|
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 GridMapNomenclature()
public GridMapNomenclature(GridSystem system)
| Method Detail |
|---|
public java.lang.String nameFor(Point coords,
int scale)
nameFor in interface MapNomenclaturepublic java.lang.String nameFor(Point coord)
nameFor in interface MapNomenclaturepublic Point coordFor(java.lang.String locationName)
coordFor in interface MapNomenclaturepublic int scaleFor(java.lang.String locationName)
MapNomenclature
scaleFor in interface MapNomenclaturepublic Cog getState()
getState in interface Coggablepublic void setState(Cog newState)
setState in interface Coggablepublic 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 | ||||||||