protected void drawItemLabel(final GC g2,
final PlotOrientation orientation, final XYDataset dataset,
final int series, final int item, final double x, final double y,
final boolean negative) {
final XYItemLabelGenerator generator = this.getItemLabelGenerator(
series, item);
if (generator != null) {
final Font labelFont = this.getItemLabelFont(series, item);
// Paint paint = getItemLabelPaint(series, item);
// g2.setPaint(paint);
// Color color = getColor(ITEM_LABEL_COLOR);
// g2.setForeground(color);
g2.setFont(labelFont);
final String label = generator.generateLabel(dataset, series, item);
// get the label position..
ItemLabelPosition position = null;
if (!negative) {
position = this.getPositiveItemLabelPosition(series, item);