if (_spacingValue == 0.0) {
if (_roundingValue == 0.0) {
return new BasicRectangle(0, 0, width, height, _getFill(),
_getLineWidth());
} else {
return new RoundedRectangle(0, 0, width, height, _getFill(),
_getLineWidth(), _roundingValue, _roundingValue);
}
} else {
CompositeFigure result;
if (_roundingValue == 0.0) {
result = new CompositeFigure(new BasicRectangle(-_spacingValue,
-_spacingValue, width + 2 * _spacingValue, height + 2
* _spacingValue, null, _getLineWidth()));
result.add(new BasicRectangle(0, 0, width, height, _getFill(),
_getLineWidth()));
} else {
result = new CompositeFigure(new RoundedRectangle(
-_spacingValue, -_spacingValue, width + 2
* _spacingValue, height + 2 * _spacingValue,
null, _getLineWidth(), _roundingValue + _spacingValue,
_roundingValue + _spacingValue));
result.add(new RoundedRectangle(0, 0, width, height,
_getFill(), _getLineWidth(), _roundingValue,
_roundingValue));
}
return result;
}