Revision 1738 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/layout/mapbox/MapBoxUtils.java
MapBoxUtils.java | ||
---|---|---|
9 | 9 |
import org.gvsig.app.project.documents.layout.LayoutControl; |
10 | 10 |
import org.gvsig.app.project.documents.layout.gui.LayoutPanel; |
11 | 11 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutRectangleBehavior; |
12 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutRectangleByTwoPointsBehavior; |
|
12 | 13 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBox; |
13 | 14 |
import org.gvsig.layout.mapbox.fframe.FFrameMapBoxFactory; |
14 | 15 |
import org.gvsig.layout.mapbox.model.CellImpl; |
... | ... | |
34 | 35 |
|
35 | 36 |
public static void addLayoutTool(LayoutPanel layoutPanel, LayoutControl control) { |
36 | 37 |
LayoutAddMapBoxListenerImpl labl = new LayoutAddMapBoxListenerImpl(layoutPanel); |
37 |
control.addLayoutTool("layoutaddmapbox", new LayoutRectangleBehavior(labl)); |
|
38 |
control.addLayoutTool("layoutaddmapbox", new LayoutRectangleByTwoPointsBehavior(labl));
|
|
38 | 39 |
LayoutEditMapBoxListenerImpl leditMapBoxListener = new LayoutEditMapBoxListenerImpl(layoutPanel); |
39 | 40 |
control.addLayoutTool("layouteditmapbox", new LayoutEditMapBoxBehavior(leditMapBoxListener)); |
40 | 41 |
} |
Also available in: Unified diff