SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface which has to be implemented by all map projections. A projection is used by the map to convert from pixel space to map coordinates and vice versa.
Constructor Summary | |
IWProjection()
Default constructor. |
Method Summary | |
|
clone()
Returns a copy of this projection. |
void
|
initialize(xmlDocument)
Initializes the projection parameters from a XML document. |
IWPoint
|
meterToPixel(coord)
Returns the offset in pixels of the specified coordinate to the map center. |
boolean
|
needsReload(size)
Checks whether the map has to be reloaded completely to display the specified region. |
IWCoordinate
|
pixelToMeter(offset)
Returns the coordinate of the current map center plus the specified offset in pixels. |
String
|
toString()
Returns a text representation of this projection. |
Constructor Detail |
IWProjection()
Method Detail |
clone()
void initialize(xmlDocument)
Document xmlDocument
- a XML document storing all parameters used by the current projection
void
IWPoint meterToPixel(coord)
IWCoordinate coord
- a coordinate
IWPoint
boolean needsReload(size)
IWSize size
- the size of the visible part of the map in pixels
boolean
IWCoordinate pixelToMeter(offset)
IWPoint offset
- an offset
IWCoordinate
String toString()
String