Revision 42173 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/ViewPort.java
ViewPort.java | ||
---|---|---|
190 | 190 |
* @see #getExtents() |
191 | 191 |
*/ |
192 | 192 |
protected ExtentHistory extentsHistory = new ExtentHistory(); |
193 |
|
|
193 |
|
|
194 | 194 |
/** |
195 | 195 |
* <p> |
196 | 196 |
* Size in <i>screen coordinates</i> of the rectangle where the image is |
... | ... | |
702 | 702 |
*/ |
703 | 703 |
public void setPreviousEnvelope() { |
704 | 704 |
this.updateDrawVersion(); |
705 |
extentsHistory.putNext(extent); |
|
705 | 706 |
extent = extentsHistory.removePrev(); |
706 | 707 |
|
707 | 708 |
// Calcula la transformaci�n af�n |
... | ... | |
722 | 723 |
*/ |
723 | 724 |
public void setNextEnvelope() { |
724 | 725 |
this.updateDrawVersion(); |
726 |
extentsHistory.put(extent); |
|
725 | 727 |
extent = extentsHistory.removeNext(); |
726 | 728 |
|
727 | 729 |
// Calcula la transformaci�n af�n |
... | ... | |
845 | 847 |
if (this.extent != null && this.extent.equals(newExtent)) { |
846 | 848 |
return; |
847 | 849 |
} |
850 |
|
|
848 | 851 |
if (extent != null) { |
849 |
// if (!extent.equals(extentsHistory.get()) && !extent.equals(extentsHistory.getNext()) ) { |
|
850 |
// extentsHistory.clear(); |
|
851 |
// } |
|
852 |
if (!extent.equals(extentsHistory.get()) |
|
853 |
&& !extent.equals(extentsHistory.getNext())) { |
|
854 |
extentsHistory.clear(); |
|
855 |
} |
|
852 | 856 |
extentsHistory.put(extent); |
853 | 857 |
} |
858 |
|
|
854 | 859 |
this.updateDrawVersion(); |
855 | 860 |
this.extent = newExtent; |
856 | 861 |
|
857 | 862 |
// Calcula la transformaci�n af�n |
858 | 863 |
calculateAffineTransform(); |
864 |
|
|
859 | 865 |
|
860 | 866 |
// Lanzamos los eventos de extent cambiado |
861 | 867 |
callExtentChanged(getAdjustedExtent()); |
... | ... | |
1485 | 1491 |
public ExtentHistory getEnvelopes() { |
1486 | 1492 |
return extentsHistory; |
1487 | 1493 |
} |
1488 |
|
|
1489 | 1494 |
|
1490 | 1495 |
/** |
1491 | 1496 |
* <p> |
Also available in: Unified diff