ClientRasterLayerInfo layerInfo = rasterLayer.getLayerInfo();
LegendItemComponentInfo item = new LegendItemComponentInfo();
LegendIconComponentInfo icon = new LegendIconComponentInfo();
icon.setLabel(layerInfo.getLabel());
icon.setLayerType(layerInfo.getLayerType());
item.addChild(icon);
item.addChild(getLegendLabel(legend, layerInfo.getLabel()));
legend.addChild(item);
}
}
return legend;