return;
}
if (shape instanceof RoundRectangle2D)
{
final RoundRectangle2D rr = (RoundRectangle2D) shape;
if (retval == null)
{
retval = new CellBackground();
}
if (draw)
{
// the beast has a border ..
final BorderEdge edge = ProcessUtility.produceBorderEdge(styleSheet);
if (edge != null)
{
if ((backgroundHint & BACKGROUND_TOP) == BACKGROUND_TOP)
{
retval.setTop(edge);
}
if ((backgroundHint & BACKGROUND_LEFT) == BACKGROUND_LEFT)
{
retval.setLeft(edge);
}
if ((backgroundHint & BACKGROUND_BOTTOM) == BACKGROUND_BOTTOM)
{
retval.setBottom(edge);
}
if ((backgroundHint & BACKGROUND_RIGHT) == BACKGROUND_RIGHT)
{
retval.setRight(edge);
}
}
}
if (fill && ((backgroundHint & BACKGROUND_AREA) == BACKGROUND_AREA))
{
final Color color = (Color) styleSheet.getStyleProperty(ElementStyleKeys.FILL_COLOR);
if (color != null)
{
retval.addBackground(color);
}
else
{
retval.addBackground((Color) styleSheet.getStyleProperty(ElementStyleKeys.PAINT));
}
}
final long arcHeight = StrictGeomUtility.toInternalValue(rr.getArcHeight());
final long arcWidth = StrictGeomUtility.toInternalValue(rr.getArcWidth());
if (arcHeight > 0 && arcWidth > 0)
{
final BorderCorner bc = new BorderCorner(arcWidth, arcHeight);
if ((backgroundHint & BACKGROUND_TOP) == BACKGROUND_TOP)
{