Revision 17321
branches/v10/prototypes/3D/extensions/ext3D/src/com/iver/ai2/gvsig3d/ProjectView3D.java | ||
---|---|---|
78 | 78 |
import com.iver.cit.gvsig.project.documents.table.ProjectTableFactory; |
79 | 79 |
import com.iver.cit.gvsig.project.documents.view.ProjectViewBase; |
80 | 80 |
import com.iver.cit.gvsig.project.documents.view.ProjectViewFactory; |
81 |
import com.iver.cit.gvsig.project.documents.view.gui.View; |
|
81 | 82 |
import com.iver.utiles.IPersistance; |
82 | 83 |
import com.iver.utiles.StringUtilities; |
83 | 84 |
import com.iver.utiles.XMLEntity; |
... | ... | |
281 | 282 |
|
282 | 283 |
public IWindow createWindow() { |
283 | 284 |
|
285 |
|
|
284 | 286 |
// View allready exits. Return it. |
285 | 287 |
if (m_view != null) |
286 | 288 |
return m_view; |
... | ... | |
321 | 323 |
canvasListener lis = new canvasListener(); |
322 | 324 |
lis.setCanvas(m_canvas3d); |
323 | 325 |
m_canvas3d.addKeyListener(lis); |
326 |
m_canvas3d.addMouseMotionListener(lis); |
|
324 | 327 |
/* |
325 | 328 |
* CODIGO DE PRUEBA PARA LA INCLUSION DE TEXTOS, POLIGONOS, LINEAS, |
326 | 329 |
* ETC... |
branches/v10/prototypes/3D/extensions/ext3D/src/com/iver/ai2/gvsig3d/gui/View3D.java | ||
---|---|---|
27 | 27 |
import com.iver.cit.gvsig.fmap.ProjectionEvent; |
28 | 28 |
import com.iver.cit.gvsig.fmap.ViewPort; |
29 | 29 |
import com.iver.cit.gvsig.fmap.ViewPortListener; |
30 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
|
30 | 31 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
31 | 32 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
32 | 33 |
import com.iver.cit.gvsig.project.documents.view.MapOverview; |
... | ... | |
311 | 312 |
} |
312 | 313 |
|
313 | 314 |
public void windowActivated() { |
315 |
// PluginServices.getMainFrame().getStatusBar().setEnabled(false);//getControl("scale", null).setEnabled(false); |
|
316 |
PluginServices.getMainFrame().getStatusBar().setMessage("units",""); |
|
317 |
PluginServices.getMainFrame().getStatusBar().setControlValue("scale",""); |
|
318 |
PluginServices.getMainFrame().getStatusBar().setMessage("projection", getMapControl().getViewPort().getProjection().getAbrev()); |
|
319 |
PluginServices.getMainFrame().getStatusBar().setMessage("x",""); |
|
320 |
PluginServices.getMainFrame().getStatusBar().setMessage("y",""); |
|
314 | 321 |
m_canvas3d.repaint(); |
315 |
|
|
316 | 322 |
} |
317 | 323 |
|
318 | 324 |
public void windowClosed() { |
... | ... | |
395 | 401 |
public void setNavMode(NavigationMode navMode) { |
396 | 402 |
this.navMode = navMode; |
397 | 403 |
} |
404 |
|
|
398 | 405 |
|
399 | 406 |
} |
branches/v10/prototypes/3D/extensions/ext3D/src/com/iver/ai2/gvsig3d/listener/canvasListener.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.awt.event.KeyEvent; |
4 | 4 |
import java.awt.event.KeyListener; |
5 |
import java.awt.event.MouseEvent; |
|
6 |
import java.awt.event.MouseListener; |
|
7 |
import java.awt.event.MouseMotionListener; |
|
5 | 8 |
|
9 |
import com.iver.andami.PluginServices; |
|
10 |
|
|
6 | 11 |
import es.upv.ai2.libjosg.viewer.IViewerContainer; |
7 | 12 |
import es.upv.ai2.libjosg.viewer.OSGViewer; |
8 | 13 |
|
9 |
public class canvasListener implements KeyListener {
|
|
14 |
public class canvasListener implements KeyListener, MouseMotionListener{
|
|
10 | 15 |
private static boolean active = false; |
11 | 16 |
|
12 | 17 |
private IViewerContainer m_canvas3d = null; |
... | ... | |
43 | 48 |
|
44 | 49 |
} |
45 | 50 |
|
51 |
public void mouseClicked(MouseEvent arg0) { |
|
52 |
// TODO Auto-generated method stub |
|
53 |
|
|
54 |
} |
|
55 |
|
|
56 |
public void mouseMoved(MouseEvent arg0) { |
|
57 |
PluginServices.getMainFrame().getStatusBar().setMessage("units",""); |
|
58 |
PluginServices.getMainFrame().getStatusBar().setControlValue("scale",""); |
|
59 |
PluginServices.getMainFrame().getStatusBar().setMessage("x",""); |
|
60 |
PluginServices.getMainFrame().getStatusBar().setMessage("y",""); |
|
61 |
} |
|
62 |
|
|
63 |
public void mouseDragged(MouseEvent e) { |
|
64 |
// TODO Auto-generated method stub |
|
65 |
|
|
66 |
} |
|
67 |
|
|
68 |
|
|
46 | 69 |
} |
Also available in: Unified diff