Revision 6630 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/View.java
View.java | ||
---|---|---|
113 | 113 |
* </p> |
114 | 114 |
* <ol> |
115 | 115 |
* <li> |
116 |
* <b>Map control</b>: the map area located in the right area of the window. It takes up
|
|
116 |
* <b>Map control</b>: the map area located in the right area of the window. It takes up |
|
117 | 117 |
* the biggest part of the window. |
118 | 118 |
* </li> |
119 | 119 |
* <li> |
120 |
* <b>Table of contents (TOC)</b>: is a list of layers displayed in the view. The TOC is
|
|
120 |
* <b>Table of contents (TOC)</b>: is a list of layers displayed in the view. The TOC is |
|
121 | 121 |
* located on the left-top corner of the View and is the place where the user can modify |
122 |
* the order, the legends, the visibility and other properties of the layers.
|
|
122 |
* the order, the legends, the visibility and other properties of the layers. |
|
123 | 123 |
* </li> |
124 | 124 |
* <li> |
125 | 125 |
* <b>Map overview</b>: is a small MapControl located in the left-bottom corner of the |
126 |
* View where the user can put some layers which summarizes the view. It is used to make
|
|
126 |
* View where the user can put some layers which summarizes the view. It is used to make |
|
127 | 127 |
* the navigation easier and faster. |
128 | 128 |
* </li> |
129 | 129 |
* </ol> |
130 |
*
|
|
130 |
* |
|
131 | 131 |
* @see com.iver.cit.gvsig.fmap.MapControl.java <br> |
132 | 132 |
* com.iver.cit.gvsig.gui.toc.TOC.java <br> |
133 | 133 |
* com.iver.cit.gvsig.gui.MapOverview.java <br> |
... | ... | |
168 | 168 |
// Mostramos consola |
169 | 169 |
SwingUtilities.invokeLater(new Runnable() { |
170 | 170 |
public void run() { |
171 |
|
|
171 |
|
|
172 | 172 |
getMapControl().doLayout(); // drawMap(false); |
173 | 173 |
getConsolePanel().invalidate(); |
174 | 174 |
getConsolePanel().repaint(); |
175 | 175 |
getMapControl().repaint(); |
176 | 176 |
getConsolePanel().getTxt().doLayout(); |
177 | 177 |
} |
178 |
});
|
|
178 |
}); |
|
179 | 179 |
} |
180 | 180 |
|
181 | 181 |
public void componentRemoved(ContainerEvent e) { |
... | ... | |
184 | 184 |
public void run() { |
185 | 185 |
getMapControl().repaint(); |
186 | 186 |
} |
187 |
});
|
|
187 |
}); |
|
188 | 188 |
|
189 | 189 |
} |
190 | 190 |
|
... | ... | |
236 | 236 |
m_MapControl.getViewPort().addViewPortListener(new ViewPortListener() { |
237 | 237 |
public void extentChanged(ExtentEvent e) { |
238 | 238 |
if (PluginServices.getMainFrame() != null){ |
239 |
PluginServices.getMainFrame().getStatusBar().setMessage("6", "1:"+m_MapControl.getMapContext().getScaleView());
|
|
240 |
PluginServices.getMainFrame().getStatusBar().setMessage("7", getMapControl().getViewPort().getProjection().getAbrev());
|
|
239 |
PluginServices.getMainFrame().getStatusBar().setControlValue("scale",String.valueOf(m_MapControl.getMapContext().getScaleView()));
|
|
240 |
PluginServices.getMainFrame().getStatusBar().setMessage("projection", getMapControl().getViewPort().getProjection().getAbrev());
|
|
241 | 241 |
} |
242 | 242 |
} |
243 | 243 |
|
... | ... | |
245 | 245 |
} |
246 | 246 |
|
247 | 247 |
public void projectionChanged(ProjectionEvent e) { |
248 |
m_MapLoc.setProjection(e.getNewProjection());
|
|
248 |
m_MapLoc.setProjection(e.getNewProjection()); |
|
249 | 249 |
} |
250 | 250 |
}); |
251 | 251 |
} |
... | ... | |
258 | 258 |
} |
259 | 259 |
return console; |
260 | 260 |
} |
261 |
|
|
261 |
|
|
262 | 262 |
private JDockPanel getDockConsole() |
263 | 263 |
{ |
264 | 264 |
if (dockConsole == null) |
265 | 265 |
{ |
266 |
dockConsole = new JDockPanel(getConsolePanel());
|
|
266 |
dockConsole = new JDockPanel(getConsolePanel()); |
|
267 | 267 |
} |
268 | 268 |
return dockConsole; |
269 | 269 |
} |
... | ... | |
285 | 285 |
// KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); |
286 | 286 |
// kfm.focusNextComponent(getConsolePanel()); |
287 | 287 |
System.err.println("Asigno el foco a la consola"); |
288 |
|
|
288 |
|
|
289 | 289 |
JEditTextArea jeta=getConsolePanel().getTxt(); |
290 | 290 |
jeta.requestFocusInWindow(); |
291 | 291 |
jeta.setCaretPosition(jeta.getText().length()); |
... | ... | |
296 | 296 |
|
297 | 297 |
} |
298 | 298 |
|
299 |
|
|
299 |
|
|
300 | 300 |
public void hideConsole() { |
301 | 301 |
isShowConsole=false; |
302 | 302 |
/* removeAll(); |
... | ... | |
354 | 354 |
getDockConsole().setVisible(true); |
355 | 355 |
|
356 | 356 |
} |
357 |
|
|
357 |
|
|
358 | 358 |
private class ResponseAdapter implements ResponseListener{ |
359 | 359 |
|
360 | 360 |
private HashMap spaceListener = new HashMap(); |
... | ... | |
443 | 443 |
// split.setResizeWeight(0.9); |
444 | 444 |
this.setLayout(new BorderLayout()); |
445 | 445 |
this.add(tempMainSplit, BorderLayout.CENTER); |
446 |
|
|
446 |
|
|
447 | 447 |
// hideConsole(); |
448 | 448 |
|
449 | 449 |
|
... | ... | |
587 | 587 |
* @see com.iver.mdiApp.ui.MDIManager.View#viewActivated() |
588 | 588 |
*/ |
589 | 589 |
public void viewActivated() { |
590 |
PluginServices.getMainFrame().getStatusBar().setMessage("1",
|
|
590 |
PluginServices.getMainFrame().getStatusBar().setMessage("units",
|
|
591 | 591 |
FConstant.NAMES[getMapControl().getMapContext().getViewPort().getDistanceUnits()]); |
592 |
PluginServices.getMainFrame().getStatusBar().setMessage("6", "1:"+m_MapControl.getMapContext().getScaleView());
|
|
593 |
PluginServices.getMainFrame().getStatusBar().setMessage("7", getMapControl().getViewPort().getProjection().getAbrev());
|
|
592 |
PluginServices.getMainFrame().getStatusBar().setControlValue("scale",String.valueOf(m_MapControl.getMapContext().getScaleView()));
|
|
593 |
PluginServices.getMainFrame().getStatusBar().setMessage("projection", getMapControl().getViewPort().getProjection().getAbrev());
|
|
594 | 594 |
} |
595 | 595 |
|
596 | 596 |
/** |
Also available in: Unified diff