Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/gui/dialogs/FFrameViewDialog.java
FFrameViewDialog.java | ||
---|---|---|
51 | 51 |
|
52 | 52 |
import com.iver.andami.PluginServices; |
53 | 53 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
54 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
55 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameView; |
|
56 | 54 |
import com.iver.cit.gvsig.project.documents.layout.FLayoutUtilities; |
55 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameView; |
|
57 | 56 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
58 | 57 |
import com.iver.cit.gvsig.project.documents.layout.fframes.ListViewModel; |
59 | 58 |
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation; |
59 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
60 | 60 |
import com.iver.cit.gvsig.project.documents.view.ProjectView; |
61 | 61 |
|
62 | 62 |
|
... | ... | |
231 | 231 |
m_projectView = (ProjectView) liVistas.getModel() |
232 | 232 |
.getElementAt(selectInt); |
233 | 233 |
|
234 |
boundBox=FLayoutUtilities.toSheetRect(rect, m_layout.getAT()); |
|
234 |
boundBox=FLayoutUtilities.toSheetRect(rect, m_layout.getLayoutControl().getAT());
|
|
235 | 235 |
// fframeview.setBoundBox(FLayoutUtilities.toSheetRect( |
236 | 236 |
// rect, m_layout.getAT())); |
237 | 237 |
|
... | ... | |
241 | 241 |
// .getViewPort() |
242 | 242 |
// .getMapUnits()); |
243 | 243 |
getTEscalaNumerica().setText(String.valueOf(FLayoutUtilities.getScaleView(m_projectView.getMapContext().getViewPort(), |
244 |
boundBox.getWidth(), FLayoutUtilities.fromSheetDistance(boundBox.getWidth(),m_layout.getAT())))); |
|
244 |
boundBox.getWidth(), FLayoutUtilities.fromSheetDistance(boundBox.getWidth(),m_layout.getLayoutControl().getAT()))));
|
|
245 | 245 |
// getTEscalaNumerica().setText(String.valueOf( |
246 | 246 |
// fframeview.getScale())); |
247 | 247 |
} |
... | ... | |
460 | 460 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
461 | 461 |
newFFrameView=(FFrameView)fframeview.cloneFFrame(m_layout); |
462 | 462 |
newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect( |
463 |
rect, m_layout.getAT())); |
|
463 |
rect, m_layout.getLayoutControl().getAT()));
|
|
464 | 464 |
newFFrameView.setRotation(getPRotation().getRotation()); |
465 | 465 |
if (m_projectView != null) { |
466 | 466 |
newFFrameView.setLinked(getChbEnlaceVivo().isSelected()); |
... | ... | |
480 | 480 |
newFFrameView.setQuality(getCbCalidad() |
481 | 481 |
.getSelectedIndex()); |
482 | 482 |
newFFrameView.setBoundBox(FLayoutUtilities.toSheetRect( |
483 |
rect, m_layout.getAT())); |
|
483 |
rect, m_layout.getLayoutControl().getAT()));
|
|
484 | 484 |
|
485 | 485 |
/* for (int i=0;i<m_layout.getFFrames().size();i++){ |
486 | 486 |
IFFrame fframe=(IFFrame)m_layout.getFFrames().get(i); |
Also available in: Unified diff