Revision 2894 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/Dialogs/GeoreferencingDialog.java
GeoreferencingDialog.java | ||
---|---|---|
19 | 19 |
import com.iver.cit.gvsig.fmap.MapControl; |
20 | 20 |
import com.iver.cit.gvsig.fmap.tools.ZoomOutRightButtonListener; |
21 | 21 |
import com.iver.cit.gvsig.fmap.tools.Behavior.Behavior; |
22 |
import com.iver.cit.gvsig.fmap.tools.Behavior.GeoMoveBehavior; |
|
23 |
import com.iver.cit.gvsig.fmap.tools.Behavior.GeoRedimBehavior; |
|
22 | 24 |
import com.iver.cit.gvsig.fmap.tools.Behavior.MouseMovementBehavior; |
23 |
import com.iver.cit.gvsig.fmap.tools.Behavior.MoveBehavior; |
|
24 | 25 |
import com.iver.cit.gvsig.fmap.tools.Behavior.PointBehavior; |
25 |
import com.iver.cit.gvsig.fmap.tools.Behavior.RedimBehavior; |
|
26 | 26 |
import com.iver.cit.gvsig.gui.Panels.SelectFilePanel; |
27 | 27 |
import com.iver.cit.gvsig.gui.Panels.SelectPointsPanel; |
28 | 28 |
import com.iver.cit.gvsig.gui.toolListeners.GeorefPanListener; |
29 | 29 |
import com.iver.cit.gvsig.gui.toolListeners.StatusBarListener; |
30 |
import com.iver.cit.gvsig.gui.toolListeners.ZoomInGeorefListener; |
|
31 |
import com.iver.cit.gvsig.gui.toolListeners.ZoomInListener; |
|
32 |
import com.iver.cit.gvsig.gui.toolListeners.ZoomOutGeorefListener; |
|
30 |
import com.iver.cit.gvsig.gui.toolListeners.ZoomGeorefListener; |
|
33 | 31 |
import com.iver.cit.gvsig.gui.wizards.WizardListener; |
34 | 32 |
import com.iver.cit.gvsig.project.Project; |
35 | 33 |
|
... | ... | |
49 | 47 |
private JButton bCancelar = null; |
50 | 48 |
private WizardListener wizardListener = new DialogWizardListener(); |
51 | 49 |
private JButton bSave = null; |
52 |
private RedimBehavior rb = null; |
|
50 |
private GeoRedimBehavior rb = null; |
|
51 |
private GeoMoveBehavior mb = null; |
|
53 | 52 |
private static boolean loadTools = false; |
54 | 53 |
|
55 | 54 |
/** |
... | ... | |
83 | 82 |
StatusBarListener sbl = new StatusBarListener(mapCtrl); |
84 | 83 |
|
85 | 84 |
ZoomOutRightButtonListener zoil = new ZoomOutRightButtonListener(mapCtrl); |
86 |
ZoomInGeorefListener zigl = new ZoomInGeorefListener(mapCtrl);
|
|
87 |
rb = new RedimBehavior(zigl); |
|
85 |
ZoomGeorefListener zigl = new ZoomGeorefListener(mapCtrl);
|
|
86 |
rb = new GeoRedimBehavior(zigl);
|
|
88 | 87 |
mapCtrl.addMapTool("geoZoom", new Behavior[]{rb, |
89 | 88 |
new PointBehavior(zoil), new MouseMovementBehavior(sbl)}); |
90 | 89 |
|
91 | 90 |
GeorefPanListener pl = new GeorefPanListener(mapCtrl); |
92 |
mapCtrl.addMapTool("geoPan", new Behavior[]{new MoveBehavior(pl), new MouseMovementBehavior(sbl)}); |
|
91 |
mb = new GeoMoveBehavior(pl); |
|
92 |
mapCtrl.addMapTool("geoPan", new Behavior[]{mb, new MouseMovementBehavior(sbl)}); |
|
93 | 93 |
} |
94 | 94 |
} |
95 | 95 |
|
... | ... | |
238 | 238 |
} |
239 | 239 |
|
240 | 240 |
/** |
241 |
* @return Returns the rb.
|
|
241 |
* @return Returns the GeoRedimBehavior.
|
|
242 | 242 |
*/ |
243 |
public RedimBehavior getRedimBehavior() { |
|
243 |
public GeoRedimBehavior getRedimBehavior() {
|
|
244 | 244 |
return rb; |
245 | 245 |
} |
246 | 246 |
|
247 | 247 |
/** |
248 |
* @param rb The rb to set.
|
|
248 |
* @param rb The GeoRedimBehavior to set.
|
|
249 | 249 |
*/ |
250 |
public void setRedimBehavior(RedimBehavior rb) { |
|
250 |
public void setRedimBehavior(GeoRedimBehavior rb) {
|
|
251 | 251 |
this.rb = rb; |
252 | 252 |
} |
253 |
|
|
254 |
/** |
|
255 |
* @return Returns the GeoMoveBehavior |
|
256 |
*/ |
|
257 |
public GeoMoveBehavior getGeoMoveBehavior() { |
|
258 |
return mb; |
|
259 |
} |
|
260 |
|
|
261 |
/** |
|
262 |
* @param mb The GeoMoveBehavior to set. |
|
263 |
*/ |
|
264 |
public void setGeoMoveBehavior(GeoMoveBehavior mb) { |
|
265 |
this.mb = mb; |
|
266 |
} |
|
253 | 267 |
} // @jve:decl-index=0:visual-constraint="10,10" |
254 | 268 |
// @jve:visual-info decl-index=0 visual-constraint="10,10" |
255 | 269 |
// @jve:visual-info decl-index=0 visual-constraint="10,10" |
Also available in: Unified diff