gvsig-3d / 2.1 / trunk / org.gvsig.view3d / org.gvsig.view3d.swing / org.gvsig.view3d.swing.api / src / main / java / org / gvsig / view3d / swing / api / View3DSwingManager.java @ 475
History | View | Annotate | Download (3.25 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright ? 2007-2015 gvSIG Association
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
|
25 |
package org.gvsig.view3d.swing.api; |
26 |
|
27 |
import org.gvsig.fmap.mapcontext.MapContext; |
28 |
|
29 |
/**
|
30 |
* This class is responsible of the management of the library's swing user
|
31 |
* interface. It is the swing library's main entry point, and provides all the
|
32 |
* services to manage library swing components.
|
33 |
*
|
34 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
|
35 |
*
|
36 |
*/
|
37 |
public interface View3DSwingManager { |
38 |
|
39 |
public enum TYPE { |
40 |
SPHERE, FLAT |
41 |
} |
42 |
|
43 |
/**
|
44 |
* Creates a <code>View3DPanel</code> with a {@link MapControl3D}.
|
45 |
*
|
46 |
* @param theMapContext
|
47 |
* associated <code>MapContext</code> of
|
48 |
* <code>MapControl3D</code>
|
49 |
* @param type
|
50 |
* Type of <code>MapControl3D</code>. See {@link TYPE}.
|
51 |
* @see View3DSwingManager#createMapControl3D(MapContext, TYPE)
|
52 |
* @return
|
53 |
*/
|
54 |
public View3DPanel createView3DPanel(MapContext theMapContext, TYPE type);
|
55 |
|
56 |
/**
|
57 |
* Registers and creatres a <code>MapControl3D</code> as from
|
58 |
* {@link MapContext} {@link TYPE}. When an {@link MapControl3D} is created,
|
59 |
* it automatically adds all available and visible layers of
|
60 |
* <code>MapControl</code>.
|
61 |
*
|
62 |
* @param theMapContext
|
63 |
* associated <code>MapContext</code> of
|
64 |
* <code>MapControl3D</code>
|
65 |
* @param type
|
66 |
* Type of <code>MapControl3D</code>. See {@link TYPE}.
|
67 |
* @return an instance of <code>MapControl3D</code> ready to be shown.
|
68 |
*/
|
69 |
public MapControl3D createMapControl3D(MapContext theMapContext, TYPE type);
|
70 |
|
71 |
/**
|
72 |
* Gets the {@link MapControl3D} registered with {@link MapContext} and
|
73 |
* {@link TYPE} received as paremeter.
|
74 |
* Returns <code>null</code> if there is no intance registered with that
|
75 |
* <code>MapContext</code> and <code>TYPE</code>.
|
76 |
*
|
77 |
* @param theMapContext
|
78 |
* associated <code>MapContext</code> of
|
79 |
* <code>MapControl3D</code>
|
80 |
* @param type
|
81 |
* Type of <code>MapControl3D</code>. See {@link TYPE}.
|
82 |
* @return Intance registered with <code>MapContext</code> and
|
83 |
* <code>TYPE</code>, if there is no intance registered
|
84 |
* <code> null </code>
|
85 |
*/
|
86 |
public MapControl3D getMapControl3D(MapContext theMapContext, TYPE type);
|
87 |
|
88 |
// TODO: Add methods to get properties panels.
|
89 |
|
90 |
} |