{
final Dimension dim = getScaledDimension();
// upper side
final Rectangle2D rect = new Rectangle2D.Double();
rect.setFrame(rec.x, rec.y, rec.width, dim.height);
state.preparePaint();
graph.fill(rect);
// lower side
rect.setFrame(rec.x, rec.y - dim.height, rec.width, dim.height);
graph.fill(rect);