x1 = rect.x + (2 * i + 1) * width / (capacity * 2);
graphics.setForegroundColor(ColorConstants.gray);
pointlist.translate(x1, bottom);
graphics.fillPolygon(pointlist);
graphics.drawPolygon(pointlist);
pointlist.translate(-x1, -bottom);
}
}
graphics.setForegroundColor(foreground);
graphics.setBackgroundColor(background);
}