* the legend item.
*
* @return The block.
*/
protected Block createLegendItemBlock(final LegendItem item) {
BlockContainer result = null;
final LegendGraphic lg = new LegendGraphic(item.getShape(), item
.getFillPaint());
// lg.setFillPaintTransformer(item.getFillPaintTransformer());
lg.setShapeFilled(item.isShapeFilled());
lg.setLine(item.getLine());
// lg.setLineStroke(item.getLineStroke());
// lg.setLinePaint(item.getLinePaint());
lg.setLineVisible(item.isLineVisible());
lg.setShapeVisible(item.isShapeVisible());
lg.setShapeOutlineVisible(item.isShapeOutlineVisible());
// lg.setOutlinePaint(item.getOutlinePaint());
// lg.setOutlineStroke(item.getOutlineStroke());
lg.setPadding(this.legendItemGraphicPadding);
final LegendItemBlockContainer legendItem = new LegendItemBlockContainer(
new BorderArrangement(), item.getDataset(), item.getSeriesKey());
lg.setShapeAnchor(this.getLegendItemGraphicAnchor());
lg.setShapeLocation(this.getLegendItemGraphicLocation());
legendItem.add(lg, this.legendItemGraphicEdge);
final LabelBlock labelBlock = new LabelBlock(item.getLabel(),
this.itemFont, this.itemPaint);
labelBlock.setPadding(this.itemLabelPadding);
legendItem.add(labelBlock);
legendItem.setToolTipText(item.getToolTipText());
legendItem.setURLText(item.getURLText());
result = new BlockContainer(new CenterArrangement());
result.add(legendItem);
return result;
}