Revision 147 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/tools/listener/LayoutAddRectangleWithDialogListener.java
LayoutAddRectangleWithDialogListener.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import org.gvsig.andami.PluginServices; |
27 | 27 |
import org.gvsig.app.project.documents.layout.FLayoutUtilities; |
28 |
import org.gvsig.app.project.documents.layout.LayoutDocument; |
|
28 | 29 |
import org.gvsig.app.project.documents.layout.fframes.IFFrame; |
29 | 30 |
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.IFFrameDialog; |
30 | 31 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel; |
... | ... | |
48 | 49 |
|
49 | 50 |
public void rectangle(EnvelopeEvent event) throws BehaviorException { |
50 | 51 |
IFFrame fframe = layoutManager.createFrame(getFFrameName()); |
51 |
fframe.setLayoutPanel(layoutPanel);
|
|
52 |
fframe.setDocument(this.layoutPanel.getDocument());
|
|
52 | 53 |
fframe.setLayoutContext(layoutPanel.getLayoutContext()); |
53 |
fframe.setLayoutControl(layoutPanel.getLayoutControl()); |
|
54 | 54 |
Rectangle2D r = new Rectangle2D.Double(); |
55 | 55 |
|
56 | 56 |
r = getRectangle(TOLERANCE); |
Also available in: Unified diff