Revision: 4931 http://sourceforge.net/p/jump-pilot/code/4931 Author: ma15569 Date: 2016-06-07 13:20:45 +0000 (Tue, 07 Jun 2016) Log Message: ----------- LayerNameRenderer. If a single banded sextante raster layer is loaded, it shows a b/w icon instead of a rgb one
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/ui/LayerNameRenderer.java Added Paths: ----------- core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/LayerNameRenderer.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/ui/LayerNameRenderer.java 2016-06-06 12:40:04 UTC (rev 4930) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/LayerNameRenderer.java 2016-06-07 13:20:45 UTC (rev 4931) @@ -117,6 +117,7 @@ private ImageIcon multiRasterIcon = IconLoader.icon("maps_13.png"); private ImageIcon rasterIcon = IconLoader.icon("map_13.png"); private ImageIcon sextante_rasterIcon = IconLoader.icon("mapSv2_13.png"); + private ImageIcon sextante_rasterIcon2 = IconLoader.icon("mapSv2_13bw.png"); private final static String LAYER_NAME = I18N .get("org.openjump.core.ui.plugin.layer.LayerPropertiesPlugIn.Layer-Name"); private final static String FILE_NAME = I18N.get("ui.MenuNames.FILE"); @@ -385,11 +386,16 @@ } else if (showImageLabel && layerable instanceof WMSLayer) { imageLabel.setIcon(wmsIcon); imageLabel.setVisible(true); - } else if (showImageLabel && layerable instanceof RasterImageLayer) { - imageLabel.setIcon(sextante_rasterIcon); - imageLabel.setVisible(true); - } + } else if (showImageLabel && layerable instanceof RasterImageLayer) { + if (((RasterImageLayer) layerable).getNumBands() == 1) { + imageLabel.setIcon(sextante_rasterIcon2); + } else { + imageLabel.setIcon(sextante_rasterIcon); + } + imageLabel.setVisible(true); + } + progressIconLabel.setVisible(false); // show the progress icon if allowed if (showProgressIconLabel) { Added: core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png =================================================================== (Binary files differ) Index: core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png 2016-06-06 12:40:04 UTC (rev 4930) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png 2016-06-07 13:20:45 UTC (rev 4931) Property changes on: core/trunk/src/com/vividsolutions/jump/workbench/ui/images/mapSv2_13bw.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel