Revision 43913 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/impl/DefaultMapControlManager.java
DefaultMapControlManager.java | ||
---|---|---|
36 | 36 |
import java.util.Map; |
37 | 37 |
import java.util.Set; |
38 | 38 |
import java.util.prefs.Preferences; |
39 |
import javax.swing.JButton; |
|
40 |
import javax.swing.JTextField; |
|
41 |
import javax.swing.JToggleButton; |
|
39 | 42 |
import javax.swing.tree.TreeModel; |
40 | 43 |
import org.cresques.cts.IProjection; |
41 | 44 |
import org.gvsig.fmap.mapcontrol.LayersTreeModel; |
... | ... | |
58 | 61 |
import org.gvsig.fmap.mapcontrol.MapControlManager; |
59 | 62 |
import org.gvsig.fmap.mapcontrol.swing.dynobject.LayersDynObjectSetComponent; |
60 | 63 |
import org.gvsig.fmap.mapcontrol.swing.dynobject.impl.DefaultLayersDynObjectSetComponent; |
64 |
import org.gvsig.fmap.mapcontrol.swing.pickercontroller.impl.EnvelopePickerControllerImpl; |
|
61 | 65 |
import org.gvsig.fmap.mapcontrol.tools.snapping.snappers.ISnapper; |
62 | 66 |
import org.gvsig.tools.ToolsLocator; |
63 | 67 |
import org.gvsig.tools.dynobject.DynObjectSet; |
... | ... | |
387 | 391 |
AreaAndPerimeterCalculator calculator = new AreaAndPerimeterCalculator(); |
388 | 392 |
return calculator.area(geom, proj, areaUnits); |
389 | 393 |
} |
394 |
|
|
395 |
@Override |
|
396 |
public EnvelopePickerControllerImpl createEnvelopePickerController( |
|
397 |
MapControl mapControl, |
|
398 |
JTextField txtUpperLeftX, |
|
399 |
JTextField txtUpperLeftY, |
|
400 |
JTextField txtLowerRightX, |
|
401 |
JTextField txtLowerRightY, |
|
402 |
JButton btnMapControlEnvelope, |
|
403 |
JToggleButton btnCapture |
|
404 |
) { |
|
405 |
EnvelopePickerControllerImpl controller = new EnvelopePickerControllerImpl(mapControl, txtUpperLeftX, |
|
406 |
txtUpperLeftY, txtLowerRightX, txtLowerRightY, |
|
407 |
btnMapControlEnvelope, btnCapture |
|
408 |
); |
|
409 |
return controller; |
|
410 |
} |
|
411 |
|
|
412 |
@Override |
|
413 |
public EnvelopePickerControllerImpl createEnvelopePickerController( |
|
414 |
MapControl mapControl, |
|
415 |
JTextField txtEnvelope, |
|
416 |
JButton btnMapControlEnvelope, |
|
417 |
JToggleButton btnCapture |
|
418 |
) { |
|
419 |
EnvelopePickerControllerImpl controller = new EnvelopePickerControllerImpl( |
|
420 |
mapControl, |
|
421 |
txtEnvelope, |
|
422 |
btnMapControlEnvelope, |
|
423 |
btnCapture |
|
424 |
); |
|
425 |
return controller; |
|
426 |
} |
|
390 | 427 |
|
391 | 428 |
|
392 | 429 |
} |
Also available in: Unified diff