Revision 387
org.gvsig.vectorediting/trunk/org.gvsig.vectorediting/org.gvsig.vectorediting.main/src/main/java/org/gvsig/vectorediting/main/Main.java | ||
---|---|---|
70 | 70 |
import org.gvsig.fmap.mapcontrol.tools.PanListenerImpl; |
71 | 71 |
import org.gvsig.fmap.mapcontrol.tools.PointSelectionListener; |
72 | 72 |
import org.gvsig.fmap.mapcontrol.tools.ZoomInListenerImpl; |
73 |
import org.gvsig.fmap.mapcontrol.tools.ZoomOutRightButtonListener;
|
|
73 |
import org.gvsig.fmap.mapcontrol.tools.ZoomOutListenerImpl;
|
|
74 | 74 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior; |
75 | 75 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.MoveBehavior; |
76 | 76 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.PointBehavior; |
... | ... | |
1103 | 1103 |
new MapContext(new ViewPort(defaultProjection)); |
1104 | 1104 |
mapControl = mapControlManager.createJMapControlPanel(mapContext); |
1105 | 1105 |
|
1106 |
mapControl |
|
1107 |
.addBehavior("zoom", new Behavior[] { |
|
1108 |
new RectangleBehavior(new ZoomInListenerImpl(mapControl)), |
|
1109 |
new PointBehavior( |
|
1110 |
new ZoomOutRightButtonListener(mapControl)) }); |
|
1106 |
mapControl.addBehavior("zoom", new Behavior[] { |
|
1107 |
new RectangleBehavior(new ZoomInListenerImpl(mapControl)), |
|
1108 |
new PointBehavior(new ZoomOutListenerImpl(mapControl), |
|
1109 |
Behavior.BUTTON_RIGHT) }); |
|
1111 | 1110 |
mapControl.addBehavior("pan", new MoveBehavior(new PanListenerImpl( |
1112 | 1111 |
mapControl))); |
1113 | 1112 |
|
Also available in: Unified diff