Revision 27490 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/geolocation/ui/GeoLocationDialog.java
GeoLocationDialog.java | ||
---|---|---|
37 | 37 |
import com.iver.andami.ui.mdiManager.IWindow; |
38 | 38 |
import com.iver.andami.ui.mdiManager.IWindowListener; |
39 | 39 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
40 |
import com.iver.cit.gvsig.project.documents.view.gui.BaseView; |
|
40 | 41 |
|
41 | 42 |
/** |
42 | 43 |
* Dialogo de geolocalizaci?n de raster. |
... | ... | |
59 | 60 |
private int heightWindow = 155; |
60 | 61 |
|
61 | 62 |
private String lastTool = null; |
63 |
private BaseView view = null; |
|
62 | 64 |
|
63 | 65 |
/** |
64 | 66 |
* Constructor |
... | ... | |
74 | 76 |
* Constructor. Asigna la capa raster. |
75 | 77 |
* |
76 | 78 |
*/ |
77 |
public GeoLocationDialog(FLyrRasterSE lyr, ViewPort vp) { |
|
79 |
public GeoLocationDialog(FLyrRasterSE lyr, ViewPort vp, BaseView view) {
|
|
78 | 80 |
BorderLayout bl = new BorderLayout(5, 5); |
79 | 81 |
this.setLayout(bl); |
80 | 82 |
|
... | ... | |
83 | 85 |
} |
84 | 86 |
|
85 | 87 |
/** |
88 |
* Obtiene la vista asociada a este dialogo |
|
89 |
* @return BaseView |
|
90 |
*/ |
|
91 |
public BaseView getAssociateView() { |
|
92 |
return view; |
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
86 | 96 |
* Asigna la posici?n de la ventana |
87 | 97 |
* @param x Posici?n en X |
88 | 98 |
* @param y Posici?n en Y |
... | ... | |
158 | 168 |
*/ |
159 | 169 |
public GeoLocationPanel getGeoLocationPanel(){ |
160 | 170 |
if (geolocationPanel == null) |
161 |
geolocationPanel = new GeoLocationPanel(); |
|
171 |
geolocationPanel = new GeoLocationPanel(this);
|
|
162 | 172 |
|
163 | 173 |
return geolocationPanel; |
164 | 174 |
} |
Also available in: Unified diff