|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to seperate maplayer implementations from the core Flatscape code.
Copyright (c) 2003 Rutgers, The State University of New Jersey
| Method Summary | |
void |
drawMap(java.awt.Graphics2D g)
This is called from the Flatscape paint method. |
java.awt.geom.Point2D |
inverse(double screenY,
double screenX)
Use the current flatscape information and the current projection to find the Lat/Lon of a point that was picked on the screen. |
void |
resetCenter(flatscape.FCanvas.Info info)
Calculates the lat lon of the center of the screen after the user moves the map using the difference between the previous info and the current one. |
void |
setProj(flatscape.FCanvas.Info info)
Calculates the offset for rotation creates as stores new CADRG projection to draw the map and compute the inverse function. |
| Method Detail |
public void drawMap(java.awt.Graphics2D g)
g - Graphics to draw on the Flatscape window.public void resetCenter(flatscape.FCanvas.Info info)
info - the new Info structure from FCanvas.public void setProj(flatscape.FCanvas.Info info)
info - the new Info structure from FCanvas.
public java.awt.geom.Point2D inverse(double screenY,
double screenX)
screenY - the vertical distance from the 0,0 pointscreenX - the horizontal distance from the 0,0 point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||