01: package net.refractions.udig.mapgraphic;
02:
03: import net.refractions.udig.ui.graphics.ViewportGraphics;
04:
05: /**
06: *
07: * An object which draws a graphic on a map.
08: *
09: * @author Justin Deoliveira, Refractions Research Inc.
10: * @since 0.6.0
11: */
12: public interface MapGraphic {
13:
14: /** extension point id **/
15: public static final String XPID = "net.refractions.udig.mapgraphic.mapgraphic"; //$NON-NLS-1$
16:
17: /**
18: * Draws the graphic. Check the clip area of the {@link ViewportGraphics} object to determine what
19: * area needs to be refreshed.
20: *
21: * @param context The drawing context.
22: */
23: void draw(MapGraphicContext context);
24: }
|