01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project.internal;
10:
11: import net.refractions.udig.project.IAbstractContext;
12: import net.refractions.udig.project.internal.render.RenderManager;
13: import net.refractions.udig.project.internal.render.ViewportModel;
14: import net.refractions.udig.project.render.displayAdapter.IMapDisplay;
15:
16: /**
17: * Superclass for all context objects. Has basic functionality. Also provides methods to return type safe
18: * access to the internal model.
19: *
20: * @author Jesse
21: * @since 1.0.0
22: */
23: public interface AbstractContext extends IAbstractContext {
24:
25: /**
26: * The Viewport model of the toolkit's map
27: *
28: * @return The viewport model.
29: */
30: ViewportModel getViewportModelInternal();
31:
32: /**
33: * The LayerManager of the toolkit's map
34: *
35: * @return The LayerManager.
36: */
37: EditManager getEditManagerInternal();
38:
39: /**
40: * The Viewport model of the toolkit's map
41: */
42: public RenderManager getRenderManagerInternal();
43:
44: /**
45: * Sets the value of the '{@link net.refractions.udig.project.internal.AbstractContext#getRenderManagerInternal <em>Render Manager Internal</em>}' reference.
46: *
47: * @param value the new value of the '<em>Render Manager Internal</em>' reference.
48: */
49: void setRenderManagerInternal(RenderManager value);
50:
51: /**
52: * The display area of the Map.
53: *
54: * @return The display area of the Map.
55: */
56: public IMapDisplay getMapDisplay();
57:
58: /**
59: * The Map object.
60: *
61: * @return The Map object
62: */
63: Map getMapInternal();
64:
65: /**
66: * Sets the value of the '{@link net.refractions.udig.project.internal.AbstractContext#getMapInternal <em>Map Internal</em>}' reference.
67: *
68: * @param value the new value of the '<em>Map Internal</em>' reference.
69: * @see #getMapInternal()
70: */
71: void setMapInternal(Map value);
72:
73: /**
74: * The map's containing project
75: *
76: * @return The map's containing project
77: */
78: public Project getProjectInternal();
79:
80: }
|