Draw label for Help>Examples>JavaScript>Terabyte VirtualStack
(ImageProcessor ip, String msg, Color color)
| 322 | |
| 323 | /** Draw label for Help>Examples>JavaScript>Terabyte VirtualStack */ |
| 324 | private void label(ImageProcessor ip, String msg, Color color) { |
| 325 | int size = getHeight()/20; |
| 326 | if (size<9) size=9; |
| 327 | Font font = new Font("Helvetica", Font.PLAIN, size); |
| 328 | ip.setFont(font); |
| 329 | ip.setAntialiasedText(true); |
| 330 | ip.setColor(color); |
| 331 | ip.drawString(msg, size, size*2); |
| 332 | } |
| 333 | |
| 334 | /** Currently not implemented */ |
| 335 | public int saveChanges(int n) { |
no test coverage detected