643 |
@Override |
@Override |
644 |
public void componentResized(final ComponentEvent e) { |
public void componentResized(final ComponentEvent e) { |
645 |
|
|
646 |
// Seems to be called twice with the same size.. |
// Seems to be called twice with the same size.. |
647 |
if (oldVisibleRect != null |
if (oldVisibleRect != null |
648 |
&& oldVisibleRect.equals(getVisibleRect())){ |
&& oldVisibleRect.equals(getVisibleRect())) { |
649 |
LOGGER.info("skipping resize."); |
LOGGER.info("skipping resize."); |
650 |
return; |
return; |
651 |
} |
} |
1712 |
} |
} |
1713 |
|
|
1714 |
public boolean setMapArea(final Envelope newMapArea) { |
public boolean setMapArea(final Envelope newMapArea) { |
1715 |
|
if (newMapArea == null) |
1716 |
|
return false; |
1717 |
|
if (getMapContext() |
1718 |
|
.getCoordinateReferenceSystem() == null) return false; |
1719 |
return setMapArea(new ReferencedEnvelope(newMapArea, getMapContext() |
return setMapArea(new ReferencedEnvelope(newMapArea, getMapContext() |
1720 |
.getCoordinateReferenceSystem())); |
.getCoordinateReferenceSystem())); |
1721 |
} |
} |