return attInfo.toString();
}
}
private Canvas createLegendInfo(RasterLayer layer) {
Img legend = LayerIconHelper.getLegendImage(layer);
if (legend != null) {
SectionStack sectionStack = new SectionStack();
sectionStack.setWidth(MAX_LEGEND_WIDTH);
sectionStack.setHeight(MAX_LEGEND_HEIGHT);
SectionStackSection section = new SectionStackSection(messages.layerInfoLayerInfoLegend());
section.setCanCollapse(false);
section.setExpanded(true);
legend.setOverflow(Overflow.AUTO);
legend.setImageType(ImageStyle.NORMAL);
section.setItems(legend);
sectionStack.setSections(section);
return sectionStack;
} else {