- }\r
-\r
- public void setValue(String key, Object value) {\r
- if ("shape".equals(key))\r
- dynamicShape = (Shape) value;\r
- else if ("stroke".equals(key))\r
- dynamicStroke = (Stroke) value;\r
- else if ("color".equals(key))\r
- dynamicColor = (Paint) value;\r
- else if ("fill".equals(key))\r
- dynamicFill = (Boolean) value;\r
- else if ("scaleStroke".equals(key))\r
- dynamicScaleStroke = (Boolean) value;\r
- else if ("scaleShape".equals(key))\r
- dynamicScaleShape = (Boolean) value;\r
-// else super.setValue(key, value);\r
- }\r
-\r
- @Override\r
- public void initValues() {\r
- dynamicShape = null;\r
- dynamicStroke = null;\r
- dynamicColor = null;\r
- dynamicFill = null;\r
- dynamicScaleStroke = null;\r
- dynamicScaleShape = null;\r
- }\r
-\r
- @Override\r
- public String toString() {\r
- return super.toString() + " [shape=" + shape + ",color=" + color + "]";\r
- }\r
+ }
+
+ public void setValue(String key, Object value) {
+ if ("shape".equals(key))
+ dynamicShape = (Shape) value;
+ else if ("stroke".equals(key))
+ dynamicStroke = (Stroke) value;
+ else if ("color".equals(key))
+ dynamicColor = (Paint) value;
+ else if ("fill".equals(key))
+ dynamicFill = (Boolean) value;
+ else if ("scaleStroke".equals(key))
+ dynamicScaleStroke = (Boolean) value;
+ else if ("scaleShape".equals(key))
+ dynamicScaleShape = (Boolean) value;
+// else super.setValue(key, value);
+ }
+
+ @Override
+ public void initValues() {
+ dynamicShape = null;
+ dynamicStroke = null;
+ dynamicColor = null;
+ dynamicFill = null;
+ dynamicScaleStroke = null;
+ dynamicScaleShape = null;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + " [shape=" + shape + ",color=" + color + "]";
+ }