+++ /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 an element with activated wordwrap\r
-//If a line would exceed the elements border, instead\r
-//the exceeding part is written into the next line\r
-\r
-int y=textHeight();\r
-\r
-drawRectangle(0,0,width,height);\r
-setWordWrap(true);\r
-\r
-for(String textline : textlines) {\r
- y += printCenter(textline,y);\r
-}\r
- /****CUSTOM_CODE END****/\r
- }\r
-}\r