return pointCount;\r
}\r
\r
- public void setPointCount(final int points){\r
+ public void setPointCount(final int points) throws PropertyVetoException{\r
+ if ( points < 2 || points > 8 )\r
+ throw new PropertyVetoException("Invalid number of points", null);\r
pointCount = points;\r
generateGeometry();\r
}\r
throw new ValidationException(this, "Invalid Length");\r
if ( iD.isGreaterThan(oD) )\r
throw new ValidationException(this, "iD > oD"); \r
+ if ( iD.isGreaterThan(pD) )\r
+ throw new ValidationException(this, "iD > pD"); \r
+ if ( pD.isGreaterThan(oD) )\r
+ throw new ValidationException(this, "pD > oD"); \r
}\r
}\r