Revision 145 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/gui/DefaultLayoutPanel.java
DefaultLayoutPanel.java | ||
---|---|---|
24 | 24 |
import java.awt.BorderLayout; |
25 | 25 |
import java.awt.Component; |
26 | 26 |
import java.awt.Graphics2D; |
27 |
import java.awt.GridLayout; |
|
28 | 27 |
import java.awt.geom.AffineTransform; |
29 | 28 |
import java.awt.print.PageFormat; |
30 | 29 |
import java.awt.print.Printable; |
... | ... | |
52 | 51 |
import javax.swing.JSplitPane; |
53 | 52 |
import javax.swing.filechooser.FileFilter; |
54 | 53 |
|
55 |
import org.cresques.cts.IProjection; |
|
56 | 54 |
import org.gvsig.andami.PluginServices; |
57 | 55 |
import org.gvsig.andami.messages.NotificationManager; |
58 |
import org.gvsig.andami.ui.mdiFrame.NewStatusBar; |
|
59 | 56 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
60 | 57 |
import org.gvsig.app.project.documents.Document; |
61 | 58 |
import org.gvsig.app.project.documents.gui.WindowLayout; |
... | ... | |
69 | 66 |
import org.gvsig.app.project.documents.layout.fframes.IFFrameUseFMap; |
70 | 67 |
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.IFFrameDialog; |
71 | 68 |
import org.gvsig.app.project.documents.layout.gui.dialogs.FConfigLayoutDialog; |
72 |
import org.gvsig.app.project.documents.layout.gui.panel.DefaultUIManager; |
|
73 | 69 |
import org.gvsig.app.project.documents.layout.gui.panel.UIManager; |
74 |
import org.gvsig.app.project.documents.layout.gui.panel.UIManager.Area; |
|
75 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
76 | 70 |
import org.gvsig.fmap.mapcontext.events.ColorEvent; |
77 | 71 |
import org.gvsig.fmap.mapcontext.events.ExtentEvent; |
78 | 72 |
import org.gvsig.fmap.mapcontext.events.ProjectionEvent; |
... | ... | |
538 | 532 |
public void drawLayoutPrint(Graphics2D g2) { |
539 | 533 |
layoutControl.setCancelDrawing(false); |
540 | 534 |
|
541 |
// setCursor(Cursor.getDefaultCursor()); |
|
542 |
|
|
543 | 535 |
double scale = 0; |
544 | 536 |
scale = layoutControl.getRect().height / layoutContext.getAttributes().m_sizePaper.getAlto() * 1; |
545 | 537 |
AffineTransform escalado = new AffineTransform(); |
... | ... | |
554 | 546 |
IFFrame[] fframes=layoutContext.getFFrames(); |
555 | 547 |
|
556 | 548 |
for (int i = 0; i < fframes.length; i++) { |
557 |
// fframes[i].setPrintingProperties(this.att); |
|
558 | 549 |
fframes[i].print( |
559 | 550 |
g2, |
560 | 551 |
layoutControl.getAT(), |
561 | 552 |
null, |
562 | 553 |
layoutContext.getAttributes().toPrintAttributes()); |
563 |
// fframes[i].setPrintingProperties(null); |
|
564 | 554 |
} |
565 |
|
|
566 |
// TODO Esto es para ver el rect�ngulo que representa el folio en la |
|
567 |
// impresi�n. |
|
568 |
// g2.drawRect(0, 0, (int) rect.getWidth(), (int) rect.getHeight()); |
|
569 | 555 |
} |
570 | 556 |
|
571 | 557 |
public void addLateralComponent(JComponent c) { |
Also available in: Unified diff