MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / getMaxWidth

Method getMaxWidth

src/main/java/ui/controls/PopUp.java:209–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 }
208
209 private int getMaxWidth() {
210 Vector lines=((PopUpElement)popUps.elementAt(0)).getMessage();
211
212 int length=0;
213
214 if (lines.size()<1) return length;
215
216 for (int line=0; line<lines.size(); ) {
217 String string=(String) lines.elementAt(line);
218 length=(length>getStrWidth(string))?length:getStrWidth(string);
219 line++;
220 }
221 return length;
222 }
223
224 private int getColorInk() {
225 int type=((PopUpElement)popUps.elementAt(0)).getType();

Callers 1

paintCustomMethod · 0.95

Calls 3

getStrWidthMethod · 0.95
getMessageMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected