@Test public void testToReferencedEnvelope() { final BBoxMapBounds bboxMapBounds = new BBoxMapBounds(WGS84, -180, -90, 180, 90); final ReferencedEnvelope envelope = bboxMapBounds.toReferencedEnvelope(new Rectangle(10, 5)); assertEquals(-180, envelope.getMinX(), 0.001); assertEquals(180, envelope.getMaxX(), 0.001); assertEquals(-90, envelope.getMinY(), 0.001); assertEquals(90, envelope.getMaxY(), 0.001); assertEquals(WGS84, envelope.getCoordinateReferenceSystem()); }
@Override public ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea) { return new ReferencedEnvelope(this.bbox, getProjection()); }
BBoxMapBounds extends MapBounds { @Override public ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea) { return new ReferencedEnvelope(this.bbox, getProjection()); } }
BBoxMapBounds extends MapBounds { @Override public ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea) { return new ReferencedEnvelope(this.bbox, getProjection()); } BBoxMapBounds(final CoordinateReferenceSystem projection, final Envelope envelope);  BBoxMapBounds(
            final CoordinateReferenceSystem projection, final double minX, final double minY,
            final double maxX, final double maxY);  BBoxMapBounds(final ReferencedEnvelope bbox); }
BBoxMapBounds extends MapBounds { @Override public ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea) { return new ReferencedEnvelope(this.bbox, getProjection()); } BBoxMapBounds(final CoordinateReferenceSystem projection, final Envelope envelope);  BBoxMapBounds(
            final CoordinateReferenceSystem projection, final double minX, final double minY,
            final double maxX, final double maxY);  BBoxMapBounds(final ReferencedEnvelope bbox); @Override ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea); @Override MapBounds adjustedEnvelope(final Rectangle paintArea); @Override MapBounds adjustBoundsToNearestScale(
            final ZoomLevels zoomLevels, final double tolerance,
            final ZoomLevelSnapStrategy zoomLevelSnapStrategy,
            final boolean geodetic,
            final Rectangle paintArea,
            final double dpi); @Override Scale getScale(final Rectangle paintArea, final double dpi); @Override MapBounds adjustBoundsToRotation(final double rotation); @Override MapBounds zoomOut(final double factor); @Override MapBounds zoomToScale(final Scale scale); @Override Coordinate getCenter(); MapBounds expand(final int margin, final Rectangle paintArea); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
BBoxMapBounds extends MapBounds { @Override public ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea) { return new ReferencedEnvelope(this.bbox, getProjection()); } BBoxMapBounds(final CoordinateReferenceSystem projection, final Envelope envelope);  BBoxMapBounds(
            final CoordinateReferenceSystem projection, final double minX, final double minY,
            final double maxX, final double maxY);  BBoxMapBounds(final ReferencedEnvelope bbox); @Override ReferencedEnvelope toReferencedEnvelope(final Rectangle paintArea); @Override MapBounds adjustedEnvelope(final Rectangle paintArea); @Override MapBounds adjustBoundsToNearestScale(
            final ZoomLevels zoomLevels, final double tolerance,
            final ZoomLevelSnapStrategy zoomLevelSnapStrategy,
            final boolean geodetic,
            final Rectangle paintArea,
            final double dpi); @Override Scale getScale(final Rectangle paintArea, final double dpi); @Override MapBounds adjustBoundsToRotation(final double rotation); @Override MapBounds zoomOut(final double factor); @Override MapBounds zoomToScale(final Scale scale); @Override Coordinate getCenter(); MapBounds expand(final int margin, final Rectangle paintArea); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }