Revision 139 org.gvsig.educa.thematicmap.app/trunk/org.gvsig.educa.thematicmap.app/org.gvsig.educa.thematicmap.app.viewer/src/main/java/org/gvsig/educa/thematicmap/app/viewer/ThematicMapBasicMapControlExtension.java
ThematicMapBasicMapControlExtension.java | ||
---|---|---|
33 | 33 |
import org.gvsig.educa.thematicmap.swing.viewer.MapControlToolRegistrant; |
34 | 34 |
import org.gvsig.educa.thematicmap.swing.viewer.ThematicMapViewer; |
35 | 35 |
import org.gvsig.fmap.mapcontext.MapContext; |
36 |
import org.gvsig.fmap.mapcontext.ViewPort; |
|
36 | 37 |
import org.gvsig.fmap.mapcontrol.MapControl; |
37 | 38 |
import org.gvsig.fmap.mapcontrol.tools.ZoomOutRightButtonListener; |
38 | 39 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior; |
... | ... | |
102 | 103 |
mapCtrl.zoomOut(); |
103 | 104 |
return; |
104 | 105 |
} |
106 |
if (actionCommand.equals("ZOOM_PREV")) { |
|
107 |
ViewPort vp = mapCtrl.getViewPort(); |
|
108 |
if (vp.getEnvelopes().hasPrevious()) { |
|
109 |
vp.setPreviousEnvelope(); |
|
110 |
} else { |
|
111 |
// Zoom Full |
|
112 |
vp.setEnvelope(mapa.getLayers().getFullEnvelope()); |
|
113 |
} |
|
114 |
} |
|
105 | 115 |
if (actionCommand.startsWith("CHANGE_SCALE_")) { |
106 | 116 |
String scl = actionCommand.replaceAll("CHANGE_SCALE_", ""); |
107 | 117 |
long scale = Long.parseLong(scl); |
Also available in: Unified diff