+++ /dev/null
-import java.awt.*;\r
-import java.util.*;\r
-\r
-import com.baselet.control.Constants;\r
-import com.baselet.control.Utils;\r
-\r
-@SuppressWarnings("serial")\r
-public class <!CLASSNAME!> extends com.umlet.custom.CustomElement {\r
-\r
- public CustomElementImpl() {\r
- \r
- }\r
- \r
- @Override\r
- public void paint() {\r
- Vector<String> textlines = Utils.decomposeStrings(this.getPanelAttributes());\r
- \r
- /****CUSTOM_CODE START****/\r
-//This is a tutorial for a self resizing component \r
-//In addition you are able to resize at manually\r
-//As soon as it is resized manually a new text is\r
-//added to the property panel\r
-allowResize(false);\r
-setAutoresize(30,40,10);\r
-\r
-drawCircle(width/2,15,10);\r
-\r
-int y=45;\r
-for(String textline : textlines) {\r
- y += printCenter(textline,y);\r
-}\r
- /****CUSTOM_CODE END****/\r
- }\r
-}\r