@Test public void testWMS() throws Exception { ClientRasterLayerInfo cl1 = new ClientRasterLayerInfo(); cl1.setServerLayerId(layerBluemarble.getId()); RasterLayerRasterizingInfo rr1 = new RasterLayerRasterizingInfo(); rr1.setCssStyle("opacity:0.75"); cl1.getWidgetInfo().put(RasterLayerRasterizingInfo.WIDGET_KEY, rr1); DefaultMapContext mapContext = new DefaultMapContext(); mapContext.setCoordinateReferenceSystem(layerBluemarble.getCrs()); mapContext.getViewport().setCoordinateReferenceSystem(mapContext.getCoordinateReferenceSystem()); mapContext.getViewport().setScreenArea(new Rectangle(1024, 512)); mapContext.getViewport().setBounds(new ReferencedEnvelope(-180, 180, -90, 90, layerBluemarble.getCrs())); RasterDirectLayer layer = (RasterDirectLayer) layerFactory.createLayer(mapContext, cl1); new DirectLayerAssert(layer, mapContext).assertEqualImage("wms.png", writeImages, DELTA); mapContext.dispose(); }
@Override public void dispose() { preDispose(); super.dispose(); }
RasterDirectLayer extends DirectLayer { @Override public void dispose() { preDispose(); super.dispose(); } }
RasterDirectLayer extends DirectLayer { @Override public void dispose() { preDispose(); super.dispose(); } @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			String style); @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			double tileScale, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, double tileScale, String style); }
RasterDirectLayer extends DirectLayer { @Override public void dispose() { preDispose(); super.dispose(); } @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			String style); @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			double tileScale, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, double tileScale, String style); @Override void draw(Graphics2D graphics, MapContent map, MapViewport viewport); @Override ReferencedEnvelope getBounds(); String getNlsString(String key); PlanarImage toDirectColorModel(RenderedImage img); @Override void dispose(); }
RasterDirectLayer extends DirectLayer { @Override public void dispose() { preDispose(); super.dispose(); } @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			String style); @Deprecated  RasterDirectLayer(UrlDownLoader urlDownLoader, List<RasterTile> tiles, int tileWidth, int tileHeight,
			double tileScale, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, String style);  RasterDirectLayer(ExecutorService imageThreadPool, UrlDownLoader urlDownLoader, List<RasterTile> tiles,
			int tileWidth, int tileHeight, double tileScale, String style); @Override void draw(Graphics2D graphics, MapContent map, MapViewport viewport); @Override ReferencedEnvelope getBounds(); String getNlsString(String key); PlanarImage toDirectColorModel(RenderedImage img); @Override void dispose();  }