if (radiusX < 0)
// RadiusX, RadiusY, TopLeftRadiusX, TopLeftRadiusY,
// TopRightRadiusX, TopRightRadiusY, BottomRightRadiusX,
// BottomRightRadiusY, BottomLeftRadiusX, BottomLeftRadiusX
// must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_RADIUSY_ATTRIBUTE.equals(name))
{
radiusY = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (radiusY < 0)
// RadiusX, RadiusY, TopLeftRadiusX, TopLeftRadiusY,
// TopRightRadiusX, TopRightRadiusY, BottomRightRadiusX,
// BottomRightRadiusY, BottomLeftRadiusX, BottomLeftRadiusX
// must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_TOPLEFTRADIUSX_ATTRIBUTE.equals(name))
{
topLeftRadiusX = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (topLeftRadiusX < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_TOPLEFTRADIUSY_ATTRIBUTE.equals(name))
{
topLeftRadiusY = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (topLeftRadiusY < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_TOPRIGHTRADIUSX_ATTRIBUTE.equals(name))
{
topRightRadiusX = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (topRightRadiusX < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_TOPRIGHTRADIUSY_ATTRIBUTE.equals(name))
{
topRightRadiusY = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (topRightRadiusY < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_BOTTOMLEFTRADIUSX_ATTRIBUTE.equals(name))
{
bottomLeftRadiusX = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (bottomLeftRadiusX < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_BOTTOMLEFTRADIUSY_ATTRIBUTE.equals(name))
{
bottomLeftRadiusY = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (bottomLeftRadiusY < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_BOTTOMRIGHTRADIUSX_ATTRIBUTE.equals(name))
{
bottomRightRadiusX = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (bottomRightRadiusX < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else if (FXG_BOTTOMRIGHTRADIUSY_ATTRIBUTE.equals(name))
{
bottomRightRadiusY = DOMParserHelper.parseDouble(this, value, name, -1, problems);
if (bottomRightRadiusY < 0)
// RadiusX and RadiusY must be greater than 0.
problems.add(new FXGInvalidRectRadiusXRadiusYAttributeProblem(getDocumentPath(),
getStartLine(), getStartColumn()));
}
else
{
super.setAttribute(name, value, problems);