Revision 31496 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/MapOverview.java
MapOverview.java | ||
---|---|---|
88 | 88 |
*/ |
89 | 89 |
public class MapOverview extends MapControl implements ViewPortListener { |
90 | 90 |
/** |
91 |
* |
|
92 |
*/ |
|
93 |
private static final long serialVersionUID = -2849739771493279542L; |
|
94 |
|
|
95 |
/** |
|
91 | 96 |
* <p>Associated <code>MapControl</code> instance that this component represents its overview.</p> |
92 | 97 |
*/ |
93 | 98 |
private MapControl m_MapAssoc; |
... | ... | |
216 | 221 |
getGrid().setShowGrid(false); |
217 | 222 |
getGrid().setAdjustGrid(false); |
218 | 223 |
super.paintComponent(g); |
219 |
if ((m_MapAssoc.getMapContext().getViewPort().getExtent() != null) && |
|
220 |
(getMapContext().getViewPort().getExtent() != null)) { |
|
224 |
|
|
225 |
if ((m_MapAssoc.getMapContext().getViewPort().getEnvelope() != null) && |
|
226 |
(getMapContext().getViewPort().getEnvelope() != null)) { |
|
221 | 227 |
if (first) { |
222 | 228 |
first = false; |
223 | 229 |
repaint(); |
... | ... | |
226 | 232 |
image = new BufferedImage(this.getWidth(), this.getHeight(), |
227 | 233 |
BufferedImage.TYPE_INT_ARGB); |
228 | 234 |
ViewPort vp = getMapContext().getViewPort(); |
229 |
Envelope extentView=vp.getAdjustedExtent();
|
|
235 |
Envelope extentView=vp.getAdjustedEnvelope();
|
|
230 | 236 |
ViewPort vpOrig = m_MapAssoc.getMapContext().getViewPort(); |
231 | 237 |
if (extent==null) { |
232 |
extent=vpOrig.getAdjustedExtent();
|
|
238 |
extent=vpOrig.getAdjustedEnvelope();
|
|
233 | 239 |
} |
234 | 240 |
// Dibujamos el extent del mapa asociado. |
235 | 241 |
Graphics2D g2 = (Graphics2D) image.getGraphics(); |
... | ... | |
301 | 307 |
* @see com.iver.cit.gvsig.fmap.ViewPortListener#backColorChanged(com.iver.cit.gvsig.fmap.ColorEvent) |
302 | 308 |
*/ |
303 | 309 |
public void backColorChanged(ColorEvent e) { |
310 |
// do nothing |
|
304 | 311 |
} |
305 | 312 |
|
306 | 313 |
/** |
Also available in: Unified diff