Revision 9709 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/CoordinatesPanel.java
CoordinatesPanel.java | ||
---|---|---|
56 | 56 |
* |
57 | 57 |
* $Id$ |
58 | 58 |
* $Log$ |
59 |
* Revision 1.2 2007-01-10 09:01:25 jorpiell |
|
59 |
* Revision 1.3 2007-01-12 13:09:41 jorpiell |
|
60 |
* added searches by area |
|
61 |
* |
|
62 |
* Revision 1.2 2007/01/10 09:01:25 jorpiell |
|
60 | 63 |
* The coordinates panel is opened with the view coordinates |
61 | 64 |
* |
62 | 65 |
* Revision 1.1 2006/12/22 11:45:53 jorpiell |
... | ... | |
401 | 404 |
getBrxText().setText(String.valueOf(extent.getMinX())); |
402 | 405 |
getBryText().setText(String.valueOf(extent.getMinY())); |
403 | 406 |
} |
407 |
|
|
408 |
/** |
|
409 |
* Gets the extent |
|
410 |
* @return |
|
411 |
*/ |
|
412 |
public Rectangle2D getExtent(){ |
|
413 |
if ((!getUlxText().getText().equals("")) && |
|
414 |
(!getUlyText().getText().equals("")) && |
|
415 |
(!getBrxText().getText().equals("")) && |
|
416 |
(!getBryText().getText().equals(""))){ |
|
417 |
Rectangle2D r2d = new Rectangle2D.Double(new Double(getUlxText().getText()).doubleValue(), |
|
418 |
new Double(getUlyText().getText()).doubleValue(), |
|
419 |
new Double(getBrxText().getText()).doubleValue(), |
|
420 |
new Double(getBryText().getText()).doubleValue()); |
|
421 |
return r2d; |
|
422 |
} |
|
423 |
return null; |
|
424 |
} |
|
404 | 425 |
} // @jve:decl-index=0:visual-constraint="10,10" |
Also available in: Unified diff