Revision 140 branches/usability_v2/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
40 | 40 |
import org.cresques.cts.IProjection; |
41 | 41 |
import org.slf4j.Logger; |
42 | 42 |
import org.slf4j.LoggerFactory; |
43 |
|
|
44 | 43 |
import org.gvsig.andami.PluginServices; |
45 | 44 |
import org.gvsig.andami.messages.NotificationManager; |
45 |
import org.gvsig.andami.ui.mdiFrame.NewStatusBar; |
|
46 | 46 |
import org.gvsig.app.project.Project; |
47 | 47 |
import org.gvsig.app.project.documents.layout.DefaultLayoutNotification; |
48 | 48 |
import org.gvsig.app.project.documents.layout.FLayoutFunctions; |
... | ... | |
983 | 983 |
&& (getTypeScale() == MANUAL || getTypeScale() == CONSTANTE)) { |
984 | 984 |
getMapContext().getViewPort().setEnvelope( |
985 | 985 |
getNewEnvelope(getScale())); |
986 |
updateScaleCtrl(); |
|
986 | 987 |
} |
987 | 988 |
refresh = true; |
988 | 989 |
} |
990 |
|
|
991 |
public void updateScaleCtrl() { |
|
992 |
NewStatusBar statusbar = PluginServices.getMainFrame().getStatusBar(); |
|
993 |
MapContext mapContext = this.getMapContext(); |
|
994 |
statusbar.setMessage("units", |
|
995 |
PluginServices.getText(this, mapContext.getDistanceName())); |
|
996 |
statusbar.setControlValue("layout-view-change-scale", |
|
997 |
String.valueOf(mapContext.getScaleView())); |
|
998 |
IProjection proj = mapContext.getViewPort().getProjection(); |
|
999 |
if (proj != null) { |
|
1000 |
statusbar.setMessage("projection", proj.getAbrev()); |
|
1001 |
} else { |
|
1002 |
statusbar.setMessage("projection", ""); |
|
1003 |
} |
|
1004 |
} |
|
989 | 1005 |
|
990 | 1006 |
public void fullExtent() throws ReadException { |
991 | 1007 |
setNewEnvelope(getMapContext().getFullEnvelope()); |
Also available in: Unified diff