Revision 1738 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/DefaultLayoutControl.java
DefaultLayoutControl.java | ||
---|---|---|
68 | 68 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutEditBehavior; |
69 | 69 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutMoveBehavior; |
70 | 70 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutPointBehavior; |
71 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutRectangleBehavior; |
|
71 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutRectangleByTwoPointsBehavior;
|
|
72 | 72 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutSelectBehavior; |
73 | 73 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutViewMoveBehavior; |
74 | 74 |
import org.gvsig.app.project.documents.layout.tools.behavior.LayoutViewZoomBehavior; |
... | ... | |
127 | 127 |
private FLayoutZooms layoutZooms; |
128 | 128 |
// private LayoutPanel layoutPanel; |
129 | 129 |
|
130 |
private static Cursor transparentCursor = Toolkit.getDefaultToolkit() |
|
130 |
private static final Cursor transparentCursor = Toolkit.getDefaultToolkit()
|
|
131 | 131 |
.createCustomCursor( |
132 | 132 |
Toolkit.getDefaultToolkit().createImage( |
133 | 133 |
new MemoryImageSource(16, 16, new int[16 * 16], 0, 16)), |
... | ... | |
163 | 163 |
addLayoutTool("layoutzoomout", new LayoutZoomBehavior(lzol)); |
164 | 164 |
|
165 | 165 |
LayoutAddViewListenerImpl lavl = new LayoutAddViewListenerImpl(layoutPanel); |
166 |
addLayoutTool("layoutaddview", new LayoutRectangleBehavior(lavl)); |
|
166 |
addLayoutTool("layoutaddview", new LayoutRectangleByTwoPointsBehavior(lavl));
|
|
167 | 167 |
|
168 | 168 |
LayoutAddOverViewListenerImpl laovl = |
169 | 169 |
new LayoutAddOverViewListenerImpl(layoutPanel); |
170 |
addLayoutTool("layoutaddoverview", new LayoutRectangleBehavior(laovl)); |
|
170 |
addLayoutTool("layoutaddoverview", new LayoutRectangleByTwoPointsBehavior(laovl));
|
|
171 | 171 |
|
172 | 172 |
LayoutAddPictureListenerImpl lapl = |
173 | 173 |
new LayoutAddPictureListenerImpl(layoutPanel); |
174 |
addLayoutTool("layoutaddpicture", new LayoutRectangleBehavior(lapl)); |
|
174 |
addLayoutTool("layoutaddpicture", new LayoutRectangleByTwoPointsBehavior(lapl));
|
|
175 | 175 |
|
176 | 176 |
LayoutAddNorthListenerImpl lanorthl = |
177 | 177 |
new LayoutAddNorthListenerImpl(layoutPanel); |
178 |
addLayoutTool("layoutaddnorth", new LayoutRectangleBehavior(lanorthl)); |
|
178 |
addLayoutTool("layoutaddnorth", new LayoutRectangleByTwoPointsBehavior(lanorthl));
|
|
179 | 179 |
|
180 | 180 |
LayoutAddScaleListenerImpl lasl = |
181 | 181 |
new LayoutAddScaleListenerImpl(layoutPanel); |
182 |
addLayoutTool("layoutaddscale", new LayoutRectangleBehavior(lasl)); |
|
182 |
addLayoutTool("layoutaddscale", new LayoutRectangleByTwoPointsBehavior(lasl));
|
|
183 | 183 |
|
184 | 184 |
LayoutAddLegendListenerImpl lall = |
185 | 185 |
new LayoutAddLegendListenerImpl(layoutPanel); |
186 |
addLayoutTool("layoutaddlegend", new LayoutRectangleBehavior(lall)); |
|
186 |
addLayoutTool("layoutaddlegend", new LayoutRectangleByTwoPointsBehavior(lall));
|
|
187 | 187 |
|
188 | 188 |
LayoutAddTextListenerImpl latl = new LayoutAddTextListenerImpl(layoutPanel); |
189 |
addLayoutTool("layoutaddtext", new LayoutRectangleBehavior(latl)); |
|
189 |
addLayoutTool("layoutaddtext", new LayoutRectangleByTwoPointsBehavior(latl));
|
|
190 | 190 |
|
191 | 191 |
LayoutAddBoxListenerImpl labl = new LayoutAddBoxListenerImpl(layoutPanel); |
192 |
addLayoutTool("layoutaddbox", new LayoutRectangleBehavior(labl)); |
|
192 |
addLayoutTool("layoutaddbox", new LayoutRectangleByTwoPointsBehavior(labl));
|
|
193 | 193 |
|
194 | 194 |
LayoutAddPointListenerImpl lapointl = |
195 | 195 |
new LayoutAddPointListenerImpl(layoutPanel); |
Also available in: Unified diff