(String text, Font font)
| 103 | } |
| 104 | |
| 105 | private void init(String text, Font font) { |
| 106 | String[] lines = Tools.split(text, "\n"); |
| 107 | int count = Math.min(lines.length, MAX_LINES); |
| 108 | for (int i=0; i<count; i++) |
| 109 | theText[i] = lines[i]; |
| 110 | if (font==null) |
| 111 | font = defaultFont; |
| 112 | if (font==null) |
| 113 | font = ImageJ.SansSerif14; |
| 114 | this.font = font; |
| 115 | setAntiAlias(antialiasedText); |
| 116 | firstChar = false; |
| 117 | if (defaultColor!=null) |
| 118 | setStrokeColor(defaultColor); |
| 119 | updateBounds(); |
| 120 | } |
| 121 | |
| 122 | /** @deprecated */ |
| 123 | public TextRoi(int x, int y, String text, Font font, Color color) { |
no test coverage detected