+++ /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
-//Modify the code below to define the element's behavior.\r
-//\r
-//Example: Change the line\r
-// y += printCenter(textline,y);\r
-//to\r
-// y += 2*printCenter(textline,y);\r
-//and observe the element preview.\r
-\r
-int y=textHeight();\r
-\r
-drawRectangle(0,0,width,height);\r
-\r
-for(String textline : textlines) {\r
- y += printCenter(textline,y);\r
-}\r
- /****CUSTOM_CODE END****/\r
- }\r
-}
\ No newline at end of file