@Test public void setBoundsWithAspectCorrection_1_2() { double h = WORLD_1_1.getHeight(); ReferencedEnvelope expected = new ReferencedEnvelope( WORLD_1_1.getMinX(), WORLD_1_1.getMaxX(), WORLD_1_1.getMinY() - h / 2, WORLD_1_1.getMaxY() + h / 2, WORLD_1_1.getCoordinateReferenceSystem()); assertAspectCorrection(SCREEN_1_2, expected); }
public CoordinateReferenceSystem getCoordinateReferenceSystem() { lock.readLock().lock(); try { return bounds.getCoordinateReferenceSystem(); } finally { lock.readLock().unlock(); } }
MapViewport { public CoordinateReferenceSystem getCoordinateReferenceSystem() { lock.readLock().lock(); try { return bounds.getCoordinateReferenceSystem(); } finally { lock.readLock().unlock(); } } }
MapViewport { public CoordinateReferenceSystem getCoordinateReferenceSystem() { lock.readLock().lock(); try { return bounds.getCoordinateReferenceSystem(); } finally { lock.readLock().unlock(); } } MapViewport();  MapViewport(boolean matchAspectRatio);  MapViewport(ReferencedEnvelope bounds);  MapViewport(ReferencedEnvelope bounds, boolean matchAspectRatio);  MapViewport(MapViewport sourceViewport); }
MapViewport { public CoordinateReferenceSystem getCoordinateReferenceSystem() { lock.readLock().lock(); try { return bounds.getCoordinateReferenceSystem(); } finally { lock.readLock().unlock(); } } MapViewport();  MapViewport(boolean matchAspectRatio);  MapViewport(ReferencedEnvelope bounds);  MapViewport(ReferencedEnvelope bounds, boolean matchAspectRatio);  MapViewport(MapViewport sourceViewport); boolean isEditable(); void setEditable(boolean editable); void setMatchingAspectRatio(boolean enabled); boolean isMatchingAspectRatio(); void addMapBoundsListener(MapBoundsListener listener); void removeMapBoundsListener(MapBoundsListener listener); boolean isEmpty(); ReferencedEnvelope getBounds(); void setBounds(ReferencedEnvelope requestedBounds); Rectangle getScreenArea(); void setScreenArea(Rectangle screenArea); CoordinateReferenceSystem getCoordinateReferenceSystem(); void setCoordinateReferenceSystem(CoordinateReferenceSystem crs); AffineTransform getScreenToWorld(); AffineTransform getWorldToScreen(); boolean isFixedBoundsOnResize(); void setFixedBoundsOnResize(boolean fixedBoundsOnResize); }
MapViewport { public CoordinateReferenceSystem getCoordinateReferenceSystem() { lock.readLock().lock(); try { return bounds.getCoordinateReferenceSystem(); } finally { lock.readLock().unlock(); } } MapViewport();  MapViewport(boolean matchAspectRatio);  MapViewport(ReferencedEnvelope bounds);  MapViewport(ReferencedEnvelope bounds, boolean matchAspectRatio);  MapViewport(MapViewport sourceViewport); boolean isEditable(); void setEditable(boolean editable); void setMatchingAspectRatio(boolean enabled); boolean isMatchingAspectRatio(); void addMapBoundsListener(MapBoundsListener listener); void removeMapBoundsListener(MapBoundsListener listener); boolean isEmpty(); ReferencedEnvelope getBounds(); void setBounds(ReferencedEnvelope requestedBounds); Rectangle getScreenArea(); void setScreenArea(Rectangle screenArea); CoordinateReferenceSystem getCoordinateReferenceSystem(); void setCoordinateReferenceSystem(CoordinateReferenceSystem crs); AffineTransform getScreenToWorld(); AffineTransform getWorldToScreen(); boolean isFixedBoundsOnResize(); void setFixedBoundsOnResize(boolean fixedBoundsOnResize);  }