01: package net.refractions.udig.mapgraphic;
02:
03: import net.refractions.udig.project.ILayer;
04: import net.refractions.udig.project.internal.AbstractContext;
05: import net.refractions.udig.ui.graphics.ViewportGraphics;
06:
07: /**
08: *
09: * Context used by map graphics. Contains a graphics handle and the layer which
10: * represents the graphic. This interface is an extension of AbstractContext
11: * but is read-only, all write methods of AbstractContext are unsuportted.
12: *
13: * @author Justin Deoliveira, Refractions Research Inc.
14: * @since 0.6.0
15: */
16: public interface MapGraphicContext extends AbstractContext {
17:
18: /**
19: *
20: * @return The layer on the map that represents the map graphic.
21: */
22: ILayer getLayer();
23:
24: /**
25: *
26: * @return The graphics handle.
27: */
28: ViewportGraphics getGraphics();
29:
30: }
|