legendLabel.setFont(legend.getFont());
legendLabel.setText(text);
legendLabel.setTextOnly(true);
item.addChild(icon);
item.addChild(legendLabel);
legend.addChild(item);
}
} else if (layer instanceof ClientRasterLayerInfo) {
ClientRasterLayerInfo layerInfo = (ClientRasterLayerInfo) layer;
LegendItemComponentInfo item = new LegendItemComponentInfo();
LegendIconComponentInfo icon = new LegendIconComponentInfo();