Revision 693 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
View3DSwingManager.java | ||
---|---|---|
29 | 29 |
import org.gvsig.fmap.mapcontext.MapContext; |
30 | 30 |
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport; |
31 | 31 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
32 |
import org.gvsig.tools.observer.Observable; |
|
33 |
import org.gvsig.view3d.lib.api.properties.LayerProperties3D; |
|
32 | 34 |
import org.gvsig.view3d.swing.api.properties.GeneralProperties3D; |
33 | 35 |
import org.gvsig.view3d.swing.api.properties.GeneralProperties3DPanel; |
34 | 36 |
import org.gvsig.view3d.swing.api.properties.LayerProperties3DPanel; |
... | ... | |
43 | 45 |
* @author <a href="mailto:lmarques@disid.com">Lluis Marques</a> |
44 | 46 |
* |
45 | 47 |
*/ |
46 |
public interface View3DSwingManager { |
|
48 |
public interface View3DSwingManager extends Observable { |
|
49 |
|
|
50 |
public static final String BEFORE_CREATE_MAPCONTROL3D = "beforeCreateMapControl3D"; |
|
51 |
public static final String AFTER_CREATE_MAPCONTROL3D = "afterCreateMapControl3D"; |
|
47 | 52 |
|
48 | 53 |
public enum TYPE { |
49 | 54 |
SPHERE, FLAT |
... | ... | |
73 | 78 |
public LayerProperties3DPanel createLayerProperties3DPanel(FLayer layer); |
74 | 79 |
|
75 | 80 |
/** |
76 |
* Registers and creatres a <code>MapControl3D</code> as from
|
|
81 |
* Registers and creates a <code>MapControl3D</code> as from |
|
77 | 82 |
* {@link MapContext} {@link TYPE}. When an {@link MapControl3D} is created, |
78 | 83 |
* it automatically adds all available and visible layers of |
79 | 84 |
* <code>MapControl</code>. |
... | ... | |
106 | 111 |
* View properties to register this <code>MapControl3D</code> |
107 | 112 |
* @see View3DSwingManager#createMapControl3D(MapContext, TYPE) |
108 | 113 |
* @see View3DSwingManager#createView3DPanel(MapControl3D, String) |
109 |
* @return |
|
114 |
* @return A View3DPanel instance
|
|
110 | 115 |
*/ |
111 | 116 |
public View3DPanel createView3DPanel(MapContext theMapContext, |
112 | 117 |
String title, TYPE type, ExtendedPropertiesSupport viewProperties); |
... | ... | |
139 | 144 |
MapControlProperties3D properties); |
140 | 145 |
|
141 | 146 |
/** |
142 |
* Gets <code>GeneralProperties3D<code> of 3D library. |
|
143 |
* |
|
144 | 147 |
* @see View3DSwingManager#setGeneral3DProperties(GeneralProperties3D) |
145 |
* @return |
|
148 |
* @return Gets <code>GeneralProperties3D<code> of 3D library.
|
|
146 | 149 |
*/ |
147 | 150 |
public GeneralProperties3D getGeneral3DProperties(); |
148 | 151 |
|
... | ... | |
155 | 158 |
* @param viewProperties |
156 | 159 |
* @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport, TYPE) |
157 | 160 |
* @return List of <code>MapControl3D</code> associated with the view |
158 |
* propoerties.
|
|
161 |
* properties. |
|
159 | 162 |
*/ |
160 | 163 |
public List<MapControl3D> getMapControl3D( |
161 | 164 |
ExtendedPropertiesSupport viewProperties); |
... | ... | |
171 | 174 |
* @param type |
172 | 175 |
* Type of <code>MapControl3D</code> |
173 | 176 |
* @see View3DSwingManager#getMapControl3D(ExtendedPropertiesSupport) |
174 |
* @return |
|
177 |
* @return A MapControl3D type from view properties
|
|
175 | 178 |
*/ |
176 | 179 |
public MapControl3D getMapControl3D( |
177 | 180 |
ExtendedPropertiesSupport viewProperties, TYPE type); |
... | ... | |
184 | 187 |
* associated. |
185 | 188 |
* @see View3DSwingManager#setMapControlProperties3D(ExtendedPropertiesSupport, |
186 | 189 |
* MapControlProperties3D) |
187 |
* @return |
|
190 |
* @return MapControl 3D properties of view properties
|
|
188 | 191 |
*/ |
189 | 192 |
public MapControlProperties3D getMapControl3DProperties( |
190 | 193 |
ExtendedPropertiesSupport viewProperties); |
Also available in: Unified diff