|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.mapgraphic.grid.GridMapGraphic
public class GridMapGraphic
Draws the grid on the map.
Field Summary |
---|
Fields inherited from interface net.refractions.udig.mapgraphic.MapGraphic |
---|
XPID |
Constructor Summary | |
---|---|
GridMapGraphic()
|
Method Summary | |
---|---|
double[] |
closest(int x,
int y,
ILayer layer)
calculates the closest point to x,y. |
void |
draw(MapGraphicContext context)
Draws the graphic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridMapGraphic()
Method Detail |
---|
public void draw(MapGraphicContext context)
MapGraphic
ViewportGraphics
object to determine what
area needs to be refreshed.
draw
in interface MapGraphic
context
- The drawing context.public double[] closest(int x, int y, ILayer layer) throws FactoryException
x
- x coord in screen coordsy
- y coord in screen coordslayer
- layer containing this map graphic
FactoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |