(Graphics g, int x, int y)
| 175 | } |
| 176 | |
| 177 | private void drawAllStrings(Graphics g, int x, int y) { |
| 178 | Vector lines=((PopUpElement)popUps.elementAt(0)).getMessage(); |
| 179 | if (lines.size()<1) return; |
| 180 | |
| 181 | int fh=getFontHeight(); |
| 182 | |
| 183 | int pos=0; |
| 184 | |
| 185 | for (Enumeration stringLine=lines.elements(); stringLine.hasMoreElements(); ) { |
| 186 | String str=(String)stringLine.nextElement(); |
| 187 | if (pos>=startLine) { |
| 188 | FontCache.drawString(g,str, x, y, Graphics.TOP|Graphics.LEFT); |
| 189 | y += fh; |
| 190 | } |
| 191 | pos++; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | private int getFontHeight() { |
| 196 | return font.getHeight(); |
no test coverage detected