Revision 7272 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/VectorialEditableAdapter.java
VectorialEditableAdapter.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.62 2006-08-10 08:20:31 caballero |
|
48 |
* Revision 1.62.4.1 2006-09-14 11:18:33 jaume |
|
49 |
* updates (under demand) the layer full extent when editing, adding or removing rows and geometries |
|
50 |
* |
|
51 |
* Revision 1.62 2006/08/10 08:20:31 caballero |
|
49 | 52 |
* flatness |
50 | 53 |
* |
51 | 54 |
* Revision 1.61 2006/07/20 13:03:07 fjp |
... | ... | |
528 | 531 |
|
529 | 532 |
} |
530 | 533 |
setSelection(new FBitSet()); |
534 |
isFullExtentDirty = true; |
|
531 | 535 |
fireAfterRemoveRow(index, sourceType); |
532 | 536 |
return feat; |
533 | 537 |
} |
... | ... | |
614 | 618 |
.getY(), r.getY() + r.getHeight()), new Integer( |
615 | 619 |
calculatedIndex)); |
616 | 620 |
} |
621 |
isFullExtentDirty = true; |
|
617 | 622 |
fireAfterModifyRow(calculatedIndex, sourceType); |
618 | 623 |
return posAnteriorInExpansionFile; |
619 | 624 |
} |
... | ... | |
736 | 741 |
Rectangle2D r = g.getBounds2D(); |
737 | 742 |
index.insert(new Envelope(r.getX(), r.getX() + r.getWidth(), r.getY(), |
738 | 743 |
r.getY() + r.getHeight()), new Integer(calculatedIndex)); |
739 |
|
|
744 |
isFullExtentDirty = true; |
|
740 | 745 |
return calculatedIndex; |
741 | 746 |
} |
742 | 747 |
|
... | ... | |
826 | 831 |
if (fullExtent == null) { |
827 | 832 |
fullExtent = ova.getFullExtent(); |
828 | 833 |
} |
834 |
|
|
835 |
if (isFullExtentDirty) { |
|
836 |
fullExtent = reCalculateFullExtent(); |
|
837 |
isFullExtentDirty = false; |
|
838 |
} |
|
829 | 839 |
return fullExtent; |
830 | 840 |
} |
831 | 841 |
|
Also available in: Unified diff