()
| 93 | } |
| 94 | |
| 95 | public int getVHeight() { |
| 96 | if (lines==null && width>0) { |
| 97 | lines=StringUtils.parseMessage(text, width-10, font); |
| 98 | itemHeight=(fontHeight*lines.size())+2; |
| 99 | if (caption!=null) |
| 100 | itemHeight+=2+captionFontHeight; |
| 101 | parsed=true; |
| 102 | } |
| 103 | return itemHeight; |
| 104 | } |
| 105 | |
| 106 | public void drawItem(Graphics g, int ofs, boolean sel) { |
| 107 | if (!parsed) return; |
nothing calls this directly
no test coverage detected