MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getVHeight

Method getVHeight

src/main/java/ui/controls/form/MultiLine.java:95–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

parseMessageMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected