Revision 10401 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapContext.java
MapContext.java | ||
---|---|---|
443 | 443 |
Rectangle2D rec=proj.getExtent(viewPort.getAdjustedExtent(),scale,viewPort.getImageWidth(),viewPort.getImageHeight(),CHANGE[getViewPort().getMapUnits()],dpi); |
444 | 444 |
getViewPort().setExtent(rec); |
445 | 445 |
} |
446 |
/** |
|
447 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#setVectorial(com.iver.cit.gvsig.fmap.VectorialAdapter) |
|
448 |
*/ |
|
449 |
public void setVectorial(VectorialAdapter v) { |
|
450 |
} |
|
451 | 446 |
|
452 | 447 |
/** |
453 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#process(com.iver.cit.gvsig.fmap.FeatureSelectorVisitor) |
|
454 |
*/ |
|
455 |
public void process(FeatureVisitor visitor) { |
|
456 |
} |
|
457 |
|
|
458 |
/** |
|
459 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#processSelected(com.iver.cit.gvsig.fmap.FeatureVisitor) |
|
460 |
*/ |
|
461 |
public void processSelected(FeatureVisitor visitor) { |
|
462 |
} |
|
463 |
|
|
464 |
/** |
|
465 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#select(com.iver.cit.gvsig.fmap.FeatureSelectorVisitor, |
|
466 |
* VectorialSubSet) |
|
467 |
*/ |
|
468 |
public void select(FeatureVisitor visitor) { |
|
469 |
} |
|
470 |
|
|
471 |
/** |
|
472 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectFromSelection() |
|
473 |
*/ |
|
474 |
public void selectFromSelection() { |
|
475 |
} |
|
476 |
|
|
477 |
/** |
|
478 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#createIndex() |
|
479 |
*/ |
|
480 |
public void createIndex() { |
|
481 |
} |
|
482 |
|
|
483 |
/** |
|
484 | 448 |
* @see org.cresques.geo.Projected#getProjection() |
485 | 449 |
*/ |
486 | 450 |
public IProjection getProjection() { |
... | ... | |
506 | 470 |
// TODO implementar reprojecci?n (lo que sea eso) |
507 | 471 |
} |
508 | 472 |
|
509 |
/** |
|
510 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByPoint(java.awt.geom.Point2D, |
|
511 |
* double) |
|
512 |
*/ |
|
513 |
/* |
|
514 |
* public void selectByPoint(Point2D p, double tolerance) throws |
|
515 |
* DriverException { Point2D mapPoint = viewPort.toMapPoint((int) p.getX(), |
|
516 |
* (int) p.getY()); SelectByPointVisitor visitor = new |
|
517 |
* SelectByPointVisitor(); visitor.setQueriedPoint(mapPoint); |
|
518 |
* visitor.setTolerance(getViewPort().toMapDistance(3)); |
|
519 |
* |
|
520 |
* try { layers.process(visitor); } catch (VisitException e) { throw new |
|
521 |
* RuntimeException("No se espera que SelectByPointVisitor lance esta |
|
522 |
* excepci?n", e); } } |
|
523 |
*/ |
|
524 | 473 |
|
525 | 474 |
/** |
526 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByRect(java.awt.geom.Rectangle2D) |
|
527 |
*/ |
|
528 |
/* |
|
529 |
* public void selectByRect(Rectangle2D rect) throws DriverException { |
|
530 |
* FLayer[] actives = layers.getActives(); for (int i=0; i < actives.length; |
|
531 |
* i++) { if (actives[i] instanceof FLyrVect) { FLyrVect lyrVect = |
|
532 |
* (FLyrVect) actives[i]; FBitSet oldBitSet = lyrVect.getSelection(); |
|
533 |
* FBitSet newBitSet = lyrVect.queryByRect(rect); newBitSet.xor(oldBitSet); |
|
534 |
* lyrVect.setSelection(newBitSet); } } |
|
535 |
* } |
|
536 |
*/ |
|
537 |
|
|
538 |
/** |
|
539 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#selectByShape(com.iver.cit.gvsig.fmap.fshape.IGeometry, |
|
540 |
* int) |
|
541 |
*/ |
|
542 |
public void selectByShape(IGeometry g, int relationship) { |
|
543 |
} |
|
544 |
|
|
545 |
/** |
|
546 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByPoint(Point2D, |
|
547 |
* double) |
|
548 |
*/ |
|
549 |
public Record[] queryByPoint(Point2D p, double tolerance) { |
|
550 |
return null; |
|
551 |
} |
|
552 |
|
|
553 |
/** |
|
554 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByRect(java.awt.geom.Rectangle2D) |
|
555 |
*/ |
|
556 |
public Record[] queryByRect(Rectangle2D rect) { |
|
557 |
return null; |
|
558 |
} |
|
559 |
|
|
560 |
/** |
|
561 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#queryByShape(com.iver.cit.gvsig.fmap.fshape.IGeometry, |
|
562 |
* int) |
|
563 |
*/ |
|
564 |
public Record[] queryByShape(IGeometry g, int relationship) { |
|
565 |
return null; |
|
566 |
} |
|
567 |
|
|
568 |
/** |
|
569 | 475 |
* @see com.iver.cit.gvsig.fmap.operations.strategies.Strategy#getSelectionBounds() |
570 | 476 |
*/ |
571 | 477 |
public Rectangle2D getSelectionBounds() { |
Also available in: Unified diff